aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-thin.c
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2012-07-27 10:08:07 -0400
committerAlasdair G Kergon <agk@redhat.com>2012-07-27 10:08:07 -0400
commit16ad3d103dbec4fe6c5950d5a6c383ba9a5296ef (patch)
tree90747a420fa5f27b1428514c231d4fb1a72b5b68 /drivers/md/dm-thin.c
parent0e9c24ed7443d090e369a2eddfa13f7f0b5afbaf (diff)
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 <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-thin.c')
-rw-r--r--drivers/md/dm-thin.c1
1 files changed, 1 insertions, 0 deletions
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)
2652 goto bad_thin_open; 2652 goto bad_thin_open;
2653 2653
2654 ti->num_flush_requests = 1; 2654 ti->num_flush_requests = 1;
2655 ti->flush_supported = true;
2655 2656
2656 /* In case the pool supports discards, pass them on. */ 2657 /* In case the pool supports discards, pass them on. */
2657 if (tc->pool->pf.discard_enabled) { 2658 if (tc->pool->pf.discard_enabled) {