Commit 16ad3d10 authored by Joe Thornber's avatar Joe Thornber Committed by Alasdair G Kergon

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: default avatarJoe Thornber <ejt@redhat.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 0e9c24ed
...@@ -2652,6 +2652,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv) ...@@ -2652,6 +2652,7 @@ static int thin_ctr(struct dm_target *ti, unsigned argc, char **argv)
goto bad_thin_open; goto bad_thin_open;
ti->num_flush_requests = 1; ti->num_flush_requests = 1;
ti->flush_supported = true;
/* In case the pool supports discards, pass them on. */ /* In case the pool supports discards, pass them on. */
if (tc->pool->pf.discard_enabled) { if (tc->pool->pf.discard_enabled) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment