From: NeilBrown Date: Thu, 11 Oct 2012 02:50:13 +0000 (+1100) Subject: md/raid5: make sure to_read and to_write never go negative. X-Git-Tag: v3.7-rc1~10^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ed850f356a0a422013846b5291acff08815008b;p=pandora-kernel.git 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" Signed-off-by: NeilBrown --- Reading git-diff-tree failed