From: Muthu Kumar Date: Wed, 8 Jan 2014 21:19:52 +0000 (-0700) Subject: btrfs: fix missing increment of bi_remaining X-Git-Tag: v3.14-rc1~43^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b22bb19a24fef1a851a41e5c0657c0c4a41550;p=pandora-kernel.git 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 CC: Kent Overstreet Signed-off-by: Muthukumar Ratty Reviewed-by: Chris Mason Tested-by: Fengguang Wu Signed-off-by: Jens Axboe --- Reading git-diff-tree failed