NeilBrown 7c4e06ff2b md/raid10: some tidying up in fix_read_error
Currently the rdev on which a read error happened could be removed
before we perform the fix_error handling.  This requires extra tests
for NULL.

So delay the rdev_dec_pending call until after the call to
fix_read_error so that we can be sure that the rdev still exists.

This allows an 'if' clause to be removed so the body gets re-indented
back one level.

Signed-off-by: NeilBrown <neilb@suse.de>
2011-05-11 14:53:17 +10:00
..
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:24 +00:00
2011-03-10 08:52:27 +01:00
2011-03-10 08:52:27 +01:00
2010-08-12 04:14:11 +01:00
2011-03-10 08:52:07 +01:00
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:35 +00:00
2011-04-05 23:52:43 +02:00
2007-10-20 02:01:26 +01:00
2010-08-12 04:14:12 +01:00
2011-03-31 11:26:23 -03:00
2011-03-24 13:54:24 +00:00
2011-03-24 13:54:24 +00:00
2011-04-18 18:25:42 +10:00
2011-03-31 11:26:23 -03:00