diff options
author | Dan Williams <dan.j.williams@intel.com> | 2007-10-23 03:45:11 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-23 15:32:06 (GMT) |
commit | 4ae3f847e49e3787eca91bced31f8fd328d50496 (patch) | |
tree | 9fab60c4898e49cf1cf04e360dc63ae1d0ef5bd2 /arch | |
parent | 85bfb4da8cad483a4e550ec89060d05a4daf895b (diff) | |
download | linux-4ae3f847e49e3787eca91bced31f8fd328d50496.tar.xz |
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 <dan.j.williams@intel.com>
Tested-by: Joel Bertrand <joel.bertrand@systella.fr>
Signed-off-by: Neil Brown <neilb@suse.de>
Cc: Stable <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions