From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752652AbbJBOM7 (ORCPT ); Fri, 2 Oct 2015 10:12:59 -0400 Received: from mx2.suse.de ([195.135.220.15]:45504 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752188AbbJBOM6 (ORCPT ); Fri, 2 Oct 2015 10:12:58 -0400 Date: Fri, 2 Oct 2015 16:12:55 +0200 From: Jan Kara To: Tejun Heo Cc: axboe@kernel.dk, linux-kernel@vger.kernel.org, cgroups@vger.kernel.org, tytso@mit.edu, dedekind1@gmail.com, decui@microsoft.com, kernel-team@fb.com Subject: Re: [PATCH 2/5] writeback: fix bdi_writeback iteration in wakeup_dirtytime_writeback() Message-ID: <20151002141255.GB17746@quack.suse.cz> References: <1443545274-18787-1-git-send-email-tj@kernel.org> <1443545274-18787-3-git-send-email-tj@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1443545274-18787-3-git-send-email-tj@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 29-09-15 12:47:51, Tejun Heo wrote: > wakeup_dirtytime_writeback() walks and wakes up all wb's of all bdi's; > unfortunately, it was always waking up bdi->wb instead of the wb being > walked. Fix it. Looks good. You can add: Reviewed-by: Jan Kara Honza > > Signed-off-by: Tejun Heo > Fixes: 001fe6f617b1 ("writeback: make wakeup_dirtytime_writeback() handle multiple bdi_writeback's") > --- > fs/fs-writeback.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c > index 091a364..d0da306 100644 > --- a/fs/fs-writeback.c > +++ b/fs/fs-writeback.c > @@ -1897,8 +1897,8 @@ static void wakeup_dirtytime_writeback(struct work_struct *w) > struct wb_iter iter; > > bdi_for_each_wb(wb, bdi, &iter, 0) > - if (!list_empty(&bdi->wb.b_dirty_time)) > - wb_wakeup(&bdi->wb); > + if (!list_empty(&wb->b_dirty_time)) > + wb_wakeup(wb); > } > rcu_read_unlock(); > schedule_delayed_work(&dirtytime_work, dirtytime_expire_interval * HZ); > -- > 2.4.3 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- Jan Kara SUSE Labs, CR