From: Sagi Grimberg Date: Wed, 13 Aug 2014 11:49:31 +0000 (+0300) Subject: block: Fix BUG_ON when pi errors occur X-Git-Tag: omap-fixes-against-v3.17-rc3~30^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16f408dc6b1c87f5e3a767626df09c1399c6bf70;p=pandora-kernel.git block: Fix BUG_ON when pi errors occur When getting a pi error we get to bio_integrity_end_io with bi_remaining already decremented to 0 where we will eventually need to call bio_endio with restored original bio completion handler. Calling bio_endio invokes a BUG_ON(). We should call bio_endio_nodec instead, like what is done in bio_integrity_verify_fn. Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe --- Reading git-diff-tree failed