summaryrefslogtreecommitdiff
path: root/block/blk-mq.c
diff options
context:
space:
mode:
authorSagi Grimberg <sagig@mellanox.com>2014-08-13 11:49:31 (GMT)
committerJens Axboe <axboe@fb.com>2014-08-22 01:37:47 (GMT)
commit16f408dc6b1c87f5e3a767626df09c1399c6bf70 (patch)
tree03aefafe7a02a7778af7b44e326f12c4521905ff /block/blk-mq.c
parent274a5843ff2f08a89464589d90c64eb65f2c0847 (diff)
downloadlinux-16f408dc6b1c87f5e3a767626df09c1399c6bf70.tar.xz
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 <sagig@mellanox.com> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-mq.c')
0 files changed, 0 insertions, 0 deletions