Return-Path: Subject: Re: [PATCH v13] blk-mq: Rework blk-mq timeout handling again To: Christoph Hellwig Cc: Keith Busch , Bart Van Assche , linux-block@vger.kernel.org, Tejun Heo , Jianchao Wang , Ming Lei , Sebastian Ott , Sagi Grimberg , Israel Rukshin , Max Gurtovoy References: <20180522162515.20650-1-bart.vanassche@wdc.com> <448d63e9-cfcd-0bc8-abf3-30296590f1d6@kernel.dk> <20180522202657.GA8961@localhost.localdomain> <20180522210208.GA25444@lst.de> From: Jens Axboe Message-ID: <89111f16-e0dc-f556-43a1-9251c1d7bc05@kernel.dk> Date: Tue, 22 May 2018 15:02:12 -0600 MIME-Version: 1.0 In-Reply-To: <20180522210208.GA25444@lst.de> Content-Type: text/plain; charset=utf-8 List-ID: On 5/22/18 3:02 PM, Christoph Hellwig wrote: > On Tue, May 22, 2018 at 02:29:21PM -0600, Jens Axboe wrote: >>> of BLK_EH_HANDLED. Is the driver supposed to return BLK_EH_NOT_HANDLED >>> when the driver actually knows the request has been completed before >>> returning the status? >> >> If the driver knows it's completed, it'd have to return BLK_EH_NOT_HANDLED. >> Or BLK_EH_HANDLED would work too, since the above state transition would >> then fail. > > Btw, I think we should just kill off BLK_EH_HANDLED. WIP totally > untested progress toward that is here: > > http://git.infradead.org/users/hch/block.git/shortlog/refs/heads/blk-eh-ret > > The only real missing bit is SCSI overloading the value for internal > use. I think that's a great idea, the use cases aren't clear at all, driver writers will get this wrong. -- Jens Axboe