diff options
author | Kent Overstreet <kmo@daterainc.com> | 2013-12-03 16:24:08 -0500 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2013-12-03 16:30:00 -0500 |
commit | bc1e79acc13d70c5bb1b2a47bf0a580e6ae81fb6 (patch) | |
tree | e39de27a6e82fa8eb82e0ef3bf70b27a0bca9c9f | |
parent | 2b8221e181c128ac3bc7a9cdc80db04884951e89 (diff) |
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>
-rw-r--r-- | fs/btrfs/disk-io.c | 2 | ||||
-rw-r--r-- | fs/btrfs/volumes.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c index 5a10c61adafc..e71039ea66cf 100644 --- a/fs/btrfs/disk-io.c +++ b/fs/btrfs/disk-io.c | |||
@@ -1692,7 +1692,7 @@ static void end_workqueue_fn(struct btrfs_work *work) | |||
1692 | bio->bi_private = end_io_wq->private; | 1692 | bio->bi_private = end_io_wq->private; |
1693 | bio->bi_end_io = end_io_wq->end_io; | 1693 | bio->bi_end_io = end_io_wq->end_io; |
1694 | kfree(end_io_wq); | 1694 | kfree(end_io_wq); |
1695 | bio_endio(bio, error); | 1695 | bio_endio_nodec(bio, error); |
1696 | } | 1696 | } |
1697 | 1697 | ||
1698 | static int cleaner_kthread(void *arg) | 1698 | static int cleaner_kthread(void *arg) |
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) | |||
5297 | if (!is_orig_bio) { | 5297 | if (!is_orig_bio) { |
5298 | bio_put(bio); | 5298 | bio_put(bio); |
5299 | bio = bbio->orig_bio; | 5299 | bio = bbio->orig_bio; |
5300 | } else { | ||
5301 | atomic_inc(&bio->bi_remaining); | ||
5300 | } | 5302 | } |
5301 | bio->bi_private = bbio->private; | 5303 | bio->bi_private = bbio->private; |
5302 | bio->bi_end_io = bbio->end_io; | 5304 | bio->bi_end_io = bbio->end_io; |