Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1034869AbdDULZC (ORCPT ); Fri, 21 Apr 2017 07:25:02 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:49643 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1034536AbdDULY7 (ORCPT ); Fri, 21 Apr 2017 07:24:59 -0400 Date: Fri, 21 Apr 2017 04:24:58 -0700 From: Christoph Hellwig To: NeilBrown Cc: Jens Axboe , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/11] blk: make the bioset rescue_workqueue optional. Message-ID: <20170421112458.GB12523@infradead.org> References: <149266645258.27388.14083229348123176454.stgit@noble> <149266672858.27388.11409778158413625707.stgit@noble> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <149266672858.27388.11409778158413625707.stgit@noble> User-Agent: Mutt/1.8.0 (2017-02-23) 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 Content-Length: 1061 Lines: 24 On Thu, Apr 20, 2017 at 03:38:48PM +1000, NeilBrown wrote: > This patch converts bioset_create() and > bioset_create_nobvec() to not create a workqueue so > alloctions will never trigger punt_bios_to_rescuer(). It > also introduces bioset_create_rescued() and > bioset_create_nobvec_rescued() which preserve the old > behaviour. Why these super-early line breaks in the committ message? They make the text much more awkware compared to say: This patch converts bioset_create() and bioset_create_nobvec() to not create a workqueue so alloctions will never trigger punt_bios_to_rescuer(). It also introduces bioset_create_rescued() and bioset_create_nobvec_rescued() which preserve the old behaviour. > static struct bio_set *__bioset_create(unsigned int pool_size, > unsigned int front_pad, > - bool create_bvec_pool) > + bool create_bvec_pool, > + bool create_rescue_workqueue) I'd much prefer a single new bioset_create with a bunch of flags arguments over the number of new functions and these bool arguments.