Re: [PATCH] blk-mq: Call bio_io_error if request returned is NULL

2017-02-13 Thread Jens Axboe
On 02/13/2017 09:04 AM, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues > > If blk_mq_map_request returns NULL, bio_endio() function is not > called. Call bio_io_error() in case request returned is NULL. That's currently not a possible condition, since the main request

[PATCH] blk-mq: Call bio_io_error if request returned is NULL

2017-02-13 Thread Goldwyn Rodrigues
From: Goldwyn Rodrigues If blk_mq_map_request returns NULL, bio_endio() function is not called. Call bio_io_error() in case request returned is NULL. Signed-off-by: Goldwyn Rodrigues --- block/blk-mq.c | 8 ++-- 1 file changed, 6 insertions(+), 2