If the queue is dying then we only call the rq->end_io callout. This leaves bios...
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 18 Sep 2013 14:33:55 +0000 (08:33 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 30 Mar 2015 18:54:52 +0000 (12:54 -0600)
commit7cf1d1f29ecbcec4478f7cca978b8e1afcb5d5de
treed0b3e043eb1bb631611f66a2c5a8539ca3f7e7b7
parent82ffe36cc29ddbd5912b0c687bdc6faf82504aad
If the queue is dying then we only call the rq->end_io callout. This leaves bios setup on the request, because the caller assumes when the blk_execute_rq_nowait/blk_execute_rq call has completed that the rq->bios have been cleaned up.

This patch has blk_execute_rq_nowait use __blk_end_request_all
to free bios and also call rq->end_io.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-exec.c