On 02/13/2017 09:04 AM, Goldwyn Rodrigues wrote: > From: Goldwyn Rodrigues <rgoldwyn@xxxxxxxx> > > 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 mapper functions block on rq allocation. So we can never return NULL there. -- Jens Axboe