]> Git Repo - linux.git/commit
md: raid5: fix clearing of biofill operations
authorDan Williams <[email protected]>
Tue, 23 Oct 2007 03:45:11 +0000 (20:45 -0700)
committerLinus Torvalds <[email protected]>
Tue, 23 Oct 2007 15:32:06 +0000 (08:32 -0700)
commit4ae3f847e49e3787eca91bced31f8fd328d50496
tree9fab60c4898e49cf1cf04e360dc63ae1d0ef5bd2
parent85bfb4da8cad483a4e550ec89060d05a4daf895b
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: Dan Williams <[email protected]>
Tested-by: Joel Bertrand <[email protected]>
Signed-off-by: Neil Brown <[email protected]>
Cc: Stable <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
drivers/md/raid5.c
This page took 0.048887 seconds and 4 git commands to generate.