diff options
| author | NeilBrown <[email protected]> | 2006-05-01 12:15:47 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2006-05-01 18:17:42 -0700 |
| commit | 5e7dd2ab6b9bdfa60e19b8739e6b2a204fd4f477 (patch) | |
| tree | f9d3ac455ea67f1ea23e7e41848ac422506c474b /scripts/basic/split-include.c | |
| parent | 62de608da0b0ab17d81a233b50d1e952b9816f69 (diff) | |
[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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/basic/split-include.c')
0 files changed, 0 insertions, 0 deletions