diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-12-03 13:24:08 -0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-12-03 14:30:00 -0700 |
commit | bc1e79acc13d70c5bb1b2a47bf0a580e6ae81fb6 (patch) | |
tree | e39de27a6e82fa8eb82e0ef3bf70b27a0bca9c9f /fs/btrfs/volumes.c | |
parent | 2b8221e181c128ac3bc7a9cdc80db04884951e89 (diff) | |
download | linux-bc1e79acc13d70c5bb1b2a47bf0a580e6ae81fb6.tar.gz linux-bc1e79acc13d70c5bb1b2a47bf0a580e6ae81fb6.tar.bz2 linux-bc1e79acc13d70c5bb1b2a47bf0a580e6ae81fb6.zip |
block: fixup for generic bio chaining
btrfs bits got lost in the rebase
Signed-off-by: Kent Overstreet <kmo@daterainc.com>
Cc: Chris Mason <clm@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index f2130de0ddc2..37972d5db737 100644 --- a/fs/btrfs/volumes.c +++ b/fs/btrfs/volumes.c @@ -5297,6 +5297,8 @@ static void btrfs_end_bio(struct bio *bio, int err) if (!is_orig_bio) { bio_put(bio); bio = bbio->orig_bio; + } else { + atomic_inc(&bio->bi_remaining); } bio->bi_private = bbio->private; bio->bi_end_io = bbio->end_io; |