Skip to content
Commit 4ae3f847 authored by Dan Williams's avatar Dan Williams Committed by Linus Torvalds
Browse files

md: raid5: fix clearing of biofill operations



ops_complete_biofill() runs outside of spin_lock(&sh->lock) and clears the
'pending' and 'ack' bits.  Since the test_and_ack_op() macro only checks
against 'complete' it can get an inconsistent snapshot of pending work.

Move the clearing of these bits to handle_stripe5(), under the lock.

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Tested-by: default avatarJoel Bertrand <joel.bertrand@systella.fr>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 85bfb4da
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment