NeilBrown 1ed850f356 md/raid5: make sure to_read and to_write never go negative.
to_read and to_write are part of the result of analysing
a stripe before handling it.
Their use is to avoid some loops and tests if the values are
known to be zero.  Thus it is not a problem if they are a
little bit larger than they should be.

So decrementing them in handle_failed_stripe serves little value, and
due to races it could cause some loops to be skipped incorrectly.

So remove those decrements.

Reported-by: "Jianpeng Ma" <majianpeng@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
2012-10-11 13:50:13 +11:00
..
2012-03-28 18:41:29 +01:00
2012-03-28 18:41:29 +01:00
2012-09-09 10:35:38 +02:00
2012-07-30 17:25:16 -07:00
2010-08-12 04:14:12 +01:00
2012-07-27 15:08:16 +01:00
2012-03-19 12:46:39 +11:00
2012-08-02 11:34:40 -07:00
2012-10-11 13:08:44 +11:00
2012-03-28 18:43:38 +01:00
2012-10-11 13:34:00 +11:00
2012-10-11 13:25:44 +11:00
2012-10-11 13:49:05 +11:00