Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752538AbdIURdp (ORCPT ); Thu, 21 Sep 2017 13:33:45 -0400 Received: from bombadil.infradead.org ([65.50.211.133]:42508 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752504AbdIURdm (ORCPT ); Thu, 21 Sep 2017 13:33:42 -0400 Date: Thu, 21 Sep 2017 10:33:39 -0700 From: Christoph Hellwig To: Jens Axboe Cc: Christoph Hellwig , linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, hannes@cmpxchg.org, clm@fb.com, jack@suse.cz Subject: Re: [PATCH 7/7] fs-writeback: only allow one inflight and pending full flush Message-ID: <20170921173339.GA13384@infradead.org> References: <1505921582-26709-1-git-send-email-axboe@kernel.dk> <1505921582-26709-8-git-send-email-axboe@kernel.dk> <20170921150510.GH8839@infradead.org> <728d4141-8d73-97fb-de08-90671c2897da@kernel.dk> <3682c4c2-6e8a-e883-9f62-455ea2944496@kernel.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3682c4c2-6e8a-e883-9f62-455ea2944496@kernel.dk> User-Agent: Mutt/1.8.3 (2017-05-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: 348 Lines: 7 On Thu, Sep 21, 2017 at 10:00:25AM -0600, Jens Axboe wrote: > Something like the below would fit on top to do that. Gets rid of the > allocation and embeds the work item for global start-all in the > bdi_writeback structure. Something like that. Although if we still kalloc the global wb we wouldn't have to expose all the details in the header.