From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755555AbdL2KEY (ORCPT ); Fri, 29 Dec 2017 05:04:24 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:44714 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbdL2KEW (ORCPT ); Fri, 29 Dec 2017 05:04:22 -0500 Date: Fri, 29 Dec 2017 02:04:18 -0800 From: Christoph Hellwig To: Tejun Heo Cc: jack@suse.cz, axboe@kernel.dk, clm@fb.com, jbacik@fb.com, kernel-team@fb.com, linux-kernel@vger.kernel.org, linux-btrfs@vger.kernel.org, peterz@infradead.org, jianchao.w.wang@oracle.com, Bart.VanAssche@wdc.com Subject: Re: [PATCH 1/7] blk-mq: protect completion path with RCU Message-ID: <20171229100418.GB4020@infradead.org> References: <20171216120726.517153-1-tj@kernel.org> <20171216120726.517153-2-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20171216120726.517153-2-tj@kernel.org> User-Agent: Mutt/1.9.1 (2017-09-22) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Why do you need the srcu protection? The completion path can never sleep. If there is a good reason to keep it please add commment, and make the srcu variant a separate function only used by drivers that need it instead of adding the conditional.