dm: fix missing bi_remaining accounting
authorMike Snitzer <snitzer@redhat.com>
Fri, 1 Nov 2013 13:59:31 +0000 (09:59 -0400)
committerJens Axboe <axboe@kernel.dk>
Fri, 1 Nov 2013 15:02:59 +0000 (09:02 -0600)
commit0023432f72015803e050e381f12a724e59eded74
tree0c7cbab47b22dbac80fb687880d181bfcc6578e9
parente67f9c9b6aa0cb3229586ef9b1d33987adc3c3e6
dm: fix missing bi_remaining accounting

Add the missing bi_remaining increment, required by the block layer's
new bio-chaining code, to both the verity and old snapshot DM targets.

Otherwise users will hit the bi_remaining <= 0 BUG_ON in bio_endio().

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