Return-Path: Subject: Re: [PATCH v13] blk-mq: Rework blk-mq timeout handling again To: Bart Van Assche Cc: linux-block@vger.kernel.org, Christoph Hellwig , Tejun Heo , Keith Busch , Jianchao Wang , Ming Lei , Sebastian Ott , Sagi Grimberg , Israel Rukshin , Max Gurtovoy References: <20180522162515.20650-1-bart.vanassche@wdc.com> From: Jens Axboe Message-ID: Date: Tue, 22 May 2018 10:44:05 -0600 MIME-Version: 1.0 In-Reply-To: <20180522162515.20650-1-bart.vanassche@wdc.com> Content-Type: text/plain; charset=utf-8 List-ID: On 5/22/18 10:25 AM, Bart Van Assche wrote: > Recently the blk-mq timeout handling code was reworked. See also Tejun > Heo, "[PATCHSET v4] blk-mq: reimplement timeout handling", 08 Jan 2018 > (https://www.mail-archive.com/linux-block@vger.kernel.org/msg16985.html). > This patch reworks the blk-mq timeout handling code again. The timeout > handling code is simplified by introducing a state machine per request. > This change avoids that the blk-mq timeout handling code ignores > completions that occur after blk_mq_check_expired() has been called and > before blk_mq_rq_timed_out() has been called. I'll take a look at this again, getting rid of cmpxchg64 makes me much more comfortable. -- Jens Axboe