NeilBrown 5e7dd2ab6b [PATCH] md: Fix 'rdev->nr_pending' count when retrying barrier requests
When retrying a failed BIO_RW_BARRIER request, we need to keep the reference
in ->nr_pending over the whole retry.  Currently, we only hold the reference
if the failed request is the *last* one to finish - which is silly, because it
would normally be the first to finish.

So move the rdev_dec_pending call up into the didn't-fail branch.  As the rdev
isn't used in the later code, calling rdev_dec_pending earlier doesn't hurt.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-05-01 18:17:42 -07:00
..
2006-04-11 06:18:46 -07:00
2006-04-11 06:18:40 -07:00
2006-04-11 06:18:43 -07:00
2006-04-29 19:01:06 -07:00
2006-04-11 06:18:47 -07:00
2006-05-01 18:17:42 -07:00
2006-04-11 06:18:44 -07:00
2006-04-21 10:59:00 -07:00