From b39fe7493004404cafce20de633498ccb20aed43 Mon Sep 17 00:00:00 2001 From: Joe Thornber Date: Mon, 25 Jun 2012 11:58:03 +0100 Subject: [PATCH 07/41] dm thin: turn on flush override The thin provisioning target commits internal metadata on flush. So it should receive flushes regardless of whether the underlying devices support them. Signed-off-by: Joe Thornber Signed-off-by: Mike Snitzer --- drivers/md/dm-thin.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 991e851..2042a1a 100644 --- a/drivers/md/dm-thin.c +++ b/drivers/md/dm-thin.c @@ -2652,6 +2652,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv) goto bad_thin_open; ti->num_flush_requests = 1; + ti->flush_supported = 1; /* In case the pool supports discards, pass them on. */ if (tc->pool->pf.discard_enabled) { -- 1.7.1