dm cache: increment bi_remaining when bi_end_io is restored
authorMike Snitzer <snitzer@redhat.com>
Wed, 4 Dec 2013 02:16:04 +0000 (19:16 -0700)
committerJens Axboe <axboe@kernel.dk>
Wed, 4 Dec 2013 02:16:04 +0000 (19:16 -0700)
commit8d30726912cb39c3a3ebde06214d54861f8fdde2
treea9ecf8e2ae0f66af17665e8dced426940027e66e
parentbc1e79acc13d70c5bb1b2a47bf0a580e6ae81fb6
dm cache: increment bi_remaining when bi_end_io is restored

Move the bio->bi_remaining increment into dm_unhook_bio() so the
overwrite_endio() handler works as expected.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/md/dm-cache-target.c