summaryrefslogtreecommitdiff
path: root/fs/compat.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2006-05-01 12:15:47 -0700
committerLinus Torvalds <torvalds@g5.osdl.org>2006-05-01 18:17:42 -0700
commit5e7dd2ab6b9bdfa60e19b8739e6b2a204fd4f477 (patch)
treef9d3ac455ea67f1ea23e7e41848ac422506c474b /fs/compat.c
parent62de608da0b0ab17d81a233b50d1e952b9816f69 (diff)
downloadlwn-5e7dd2ab6b9bdfa60e19b8739e6b2a204fd4f477.tar.gz
lwn-5e7dd2ab6b9bdfa60e19b8739e6b2a204fd4f477.zip
[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>
Diffstat (limited to 'fs/compat.c')
0 files changed, 0 insertions, 0 deletions