From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Subject: Re: [PATCH] blk-mq: Call bio_io_error if request returned is NULL To: Goldwyn Rodrigues , linux-block@vger.kernel.org References: <20170213160454.30869-1-rgoldwyn@suse.de> Cc: Goldwyn Rodrigues From: Jens Axboe Message-ID: Date: Mon, 13 Feb 2017 09:07:06 -0700 MIME-Version: 1.0 In-Reply-To: <20170213160454.30869-1-rgoldwyn@suse.de> Content-Type: text/plain; charset=windows-1252 List-ID: 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 mapper functions block on rq allocation. So we can never return NULL there. -- Jens Axboe