diff options
author | NeilBrown <neilb@suse.de> | 2014-09-09 14:13:51 +1000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-08 10:00:48 -0800 |
commit | 9de29b52163683bfd1f8692f1521a6418dccebc0 (patch) | |
tree | 4f1868a333eea45148afce778d641f8ec9fd6215 /arch/powerpc | |
parent | c06c656494797804aa7f603df37208b61792d0d1 (diff) |
md/bitmap: always wait for writes on unplug.
commit 4b5060ddae2b03c5387321fafc089d242225697a upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions