From: Joe Thornber Date: Fri, 27 Jul 2012 14:08:07 +0000 (+0100) Subject: dm thin: set flush_supported X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=16ad3d103dbec4fe6c5950d5a6c383ba9a5296ef;p=linux-beck.git dm thin: set flush_supported 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 Signed-off-by: Alasdair G Kergon --- diff --git a/drivers/md/dm-thin.c b/drivers/md/dm-thin.c index 7510cb3d571c..ee5a3fc93b0e 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 = true; /* In case the pool supports discards, pass them on. */ if (tc->pool->pf.discard_enabled) {