summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-target.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2014-09-09 14:13:51 +1000
committerNeilBrown <neilb@suse.de>2014-10-09 10:07:04 +1100
commit4b5060ddae2b03c5387321fafc089d242225697a (patch)
treee7f8d80711b2c81dd8066304d5a4b453fdeb3791 /drivers/md/dm-target.c
parent8e0e99ba64c7ba46133a7c8a3e3f7de01f23bd93 (diff)
md/bitmap: always wait for writes on unplug.
If two threads call bitmap_unplug at the same time, then one might schedule all the writes, and the other might decide that it doesn't need to wait. But really it does. It rarely hurts to wait when it isn't absolutely necessary, and the current code doesn't really focus on 'absolutely necessary' anyway. So just wait always. This can potentially lead to data corruption if a crash happens at an awkward time and data was written before the bitmap was updated. It is very unlikely, but this should go to -stable just to be safe. Appropriate for any -stable. Signed-off-by: NeilBrown <neilb@suse.de> Cc: stable@vger.kernel.org (please delay until 3.18 is released)
Diffstat (limited to 'drivers/md/dm-target.c')
0 files changed, 0 insertions, 0 deletions