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
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2005-04-16 15:20:36 -07:00
2006-03-27 08:44:58 -08:00
2005-04-16 15:20:36 -07:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:44:58 -08: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
2006-03-27 08:44:58 -08:00
2005-04-16 15:20:36 -07:00
2006-03-27 08:45:03 -08:00
2006-03-27 08:45:03 -08:00
2006-03-27 08:44:59 -08:00
2006-03-27 08:45:03 -08:00
2005-04-16 15:20:36 -07:00
2006-04-20 07:54:04 -07:00
2005-04-16 15:20:36 -07:00
2006-02-03 08:32:00 -08:00
2006-04-02 13:31:42 +02:00
2005-09-17 11:49:58 -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
2005-04-16 15:20:36 -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
2005-04-16 15:20:36 -07:00