Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752596AbdLLVkM (ORCPT ); Tue, 12 Dec 2017 16:40:12 -0500 Received: from mail-qt0-f169.google.com ([209.85.216.169]:33639 "EHLO mail-qt0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752540AbdLLVkJ (ORCPT ); Tue, 12 Dec 2017 16:40:09 -0500 X-Google-Smtp-Source: ACJfBosYNQ7FU7ops7jt9ZomSkMwlnoONzNk4KPmfAZU3i+c2ltWZjEmzGvO4kqYCegNPARs2GI20g== Date: Tue, 12 Dec 2017 13:40:05 -0800 From: Tejun Heo To: Jens Axboe Cc: linux-kernel@vger.kernel.org, oleg@redhat.com, peterz@infradead.org, kernel-team@fb.com, osandov@fb.com, linux-block@vger.kernel.org, hch@lst.de Subject: Re: [PATCHSET v2] blk-mq: reimplement timeout handling Message-ID: <20171212213317.GK3919388@devbig577.frc2.facebook.com> References: <20171212190134.535941-1-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 831 Lines: 28 Hello, Jens. On Tue, Dec 12, 2017 at 01:23:01PM -0700, Jens Axboe wrote: > I like this a lot, it's a lot less fragile and more intuitive/readable > than what we have now. And apparently less error prone... I'll do > some testing with this. Great. > BTW, since youadd a few more BLK_MQ_F_BLOCKING checks, I think something > like the below would be a good cleanup on top of this. > > From: Jens Axboe > Subject: [PATCH] blk-mq: move hctx lock/unlock into a helper > > Move the RCU vs SRCU logic into lock/unlock helpers, which makes > the actual functional bits within the locked region much easier > to read. > > Signed-off-by: Jens Axboe Yeah, that's a lot better. It might also be a good idea to add lockdep_assert_hctx_locked() for verification and documentation. Thanks. -- tejun