From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christoph Hellwig Subject: Re: [PATCH 1/2] mm: Make task in balance_dirty_pages() killable Date: Mon, 14 Nov 2011 11:23:38 -0500 Message-ID: <20111114162338.GA6989@infradead.org> References: <1321287324-15121-1-git-send-email-jack@suse.cz> <1321287324-15121-2-git-send-email-jack@suse.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Wu Fengguang , Andrew Morton , Christoph Hellwig , Al Viro , linux-fsdevel@vger.kernel.org To: Jan Kara Return-path: Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:58936 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755099Ab1KNQXn (ORCPT ); Mon, 14 Nov 2011 11:23:43 -0500 Content-Disposition: inline In-Reply-To: <1321287324-15121-2-git-send-email-jack@suse.cz> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On Mon, Nov 14, 2011 at 05:15:23PM +0100, Jan Kara wrote: > There is no reason why task in balance_dirty_pages() shouldn't be killable > and it helps in recovering from some error conditions (like when filesystem > goes in error state and cannot accept writeback anymore but we still want to > kill processes using it to be able to unmount it). Sorry for noticing this so late, but what about killing the balance_dirty_pages_ratelimited wrapper, and only exporting a version that takes a number of pages now that we have to change the signature anyway? I'd recommend to call the new one simply balance_dirty_pages_ratelimited, that will give a compile breakge to anyone using one of the old versions and thus cause them to actually adapt and hopefull check the return value. (and not for this series but soon later - we probably really should call into balance_dirty_pages in larger batch sizes in most places).