Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936091AbdIYO55 (ORCPT ); Mon, 25 Sep 2017 10:57:57 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:50568 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935320AbdIYO5z (ORCPT ); Mon, 25 Sep 2017 10:57:55 -0400 X-Google-Smtp-Source: AOwi7QCp963RZ0Njer62ACb/PHXidroIpUK8oqlC4oMJ8PABYDTYvRMQz9MzVT+x4ekiNjSxm5B0eg== Subject: Re: [PATCH 4/7] page-writeback: pass in '0' for nr_pages writeback in laptop mode To: Christoph Hellwig Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, hannes@cmpxchg.org, clm@fb.com, jack@suse.cz References: <1505921582-26709-1-git-send-email-axboe@kernel.dk> <1505921582-26709-5-git-send-email-axboe@kernel.dk> <20170921145929.GD8839@infradead.org> From: Jens Axboe Message-ID: Date: Mon, 25 Sep 2017 08:57:52 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20170921145929.GD8839@infradead.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 860 Lines: 24 On 09/21/2017 08:59 AM, Christoph Hellwig wrote: > On Wed, Sep 20, 2017 at 09:32:59AM -0600, Jens Axboe wrote: >> Laptop mode really wants to writeback the number of dirty >> pages and inodes. Instead of calculating this in the caller, >> just pass in 0 and let wakeup_flusher_threads() handle it. >> >> Use the new wakeup_flusher_threads_bdi() instead of rolling >> our own. This changes the writeback to not be range cyclic, >> but that should not matter for laptop mode flush-all >> semantics. > > Looks good, > > Reviewed-by: Christoph Hellwig > > While we're at sorting out the laptop_mode_wb_timer mess: > can we move initializing and deleting it from the block code > to the backing-dev code given that it now doesn't assume anything > about block devices any more? Good point, I'll include that in a followup for 4.15. -- Jens Axboe