]> git.baikalelectronics.ru Git - kernel.git/commit
block: Fix BUG_ON when pi errors occur
authorSagi Grimberg <sagig@mellanox.com>
Wed, 13 Aug 2014 11:49:31 +0000 (14:49 +0300)
committerJens Axboe <axboe@fb.com>
Fri, 22 Aug 2014 01:37:47 +0000 (20:37 -0500)
commitff465d306b7d029661c385faba6e916c6862618a
tree03aefafe7a02a7778af7b44e326f12c4521905ff
parentae5941ae8f9131966058b84b1f8d0c83be584146
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>
block/bio-integrity.c