Dan Williams 4ae3f847e4 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>
2007-10-23 08:32:06 -07:00
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2007-10-20 02:01:11 +01:00
2005-04-16 15:20:36 -07:00
2007-10-20 02:01:11 +01:00
2007-10-20 02:01:12 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:18 +01:00
2007-05-09 12:30:47 -07:00
2007-10-20 02:01:23 +01:00
2007-10-20 02:01:21 +01:00
2007-10-20 02:01:21 +01:00
2007-10-20 02:00:57 +01:00
2007-10-20 02:01:27 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:06 +01:00
2007-07-12 15:01:08 -07:00
2007-10-20 02:01:06 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:07 +01:00
2007-10-20 02:01:26 +01:00
2007-10-20 02:01:26 +01:00
2007-10-20 02:01:26 +01:00
2007-10-20 02:01:24 +01:00
2007-10-20 02:01:08 +01:00
2005-04-16 15:20:36 -07:00
2007-10-20 02:01:24 +01:00
2007-10-19 11:53:43 -07:00
2005-04-16 15:20:36 -07:00
2007-10-17 08:43:03 -07:00
2005-09-17 11:49:58 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00