Skip to content

Commit

Permalink
dm thin: set flush_supported
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Thornber authored and Alasdair G Kergon committed Jul 27, 2012
1 parent 0e9c24e commit 16ad3d1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/md/dm-thin.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 16ad3d1

Please sign in to comment.