From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:38424 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752196AbeDIJhq (ORCPT ); Mon, 9 Apr 2018 05:37:46 -0400 Date: Mon, 9 Apr 2018 11:37:44 +0200 From: Christoph Hellwig To: Bart Van Assche Cc: Jens Axboe , linux-block@vger.kernel.org, Christoph Hellwig , Tejun Heo , Sagi Grimberg , Israel Rukshin , Max Gurtovoy , stable@vger.kernel.org Subject: Re: [PATCH] blk-mq: Fix recently introduced races in the timeout handling code Message-ID: <20180409093744.GC10405@lst.de> References: <20180409052038.5391-1-bart.vanassche@wdc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180409052038.5391-1-bart.vanassche@wdc.com> Sender: stable-owner@vger.kernel.org List-ID: This looks sensible, but I'm worried about taking a whole spinlock for every request completion, including irq disabling. However it seems like your new updated pattern would fit use of cmpxchg() very nicely.