diff options
author | Muthu Kumar <[email protected]> | 2014-01-08 14:19:52 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2014-01-08 14:19:52 -0700 |
commit | c7b22bb19a24fef1a851a41e5c0657c0c4a41550 (patch) | |
tree | 1fac305df2871fdeb16e2ef03d2c39c1d87ba9f5 /lib/cpu-notifier-error-inject.c | |
parent | 1331107f8a8611f3520046f50c44af9b2102bfd2 (diff) |
btrfs: fix missing increment of bi_remaining
In btrfs_end_bio(), we increment bi_remaining if is_orig_bio. If not,
we restore the orig_bio but failed to increment bi_remaining for
orig_bio, which triggers a BUG_ON later when bio_endio is called. Fix
is to increment bi_remaining when we restore the orig bio as well.
Reported-by: Fengguang Wu <[email protected]>
CC: Kent Overstreet <[email protected]>
Signed-off-by: Muthukumar Ratty <[email protected]>
Reviewed-by: Chris Mason <[email protected]>
Tested-by: Fengguang Wu <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/cpu-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions