From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dkim1.fusionio.com ([66.114.96.53]:49612 "EHLO dkim1.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751770Ab3EPOe6 convert rfc822-to-8bit (ORCPT ); Thu, 16 May 2013 10:34:58 -0400 Received: from mx2.fusionio.com (unknown [10.101.1.160]) by dkim1.fusionio.com (Postfix) with ESMTP id 93ADA7C04E0 for ; Thu, 16 May 2013 08:34:57 -0600 (MDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 To: "bo.li.liu@oracle.com" , Liu Bo From: Chris Mason In-Reply-To: <20130516143138.GL20202@liubo.jp.oracle.com> CC: "miaox@cn.fujitsu.com" , "linux-btrfs@vger.kernel.org" , "alex.btrfs@zadarastorage.com" References: <1368604111-25073-1-git-send-email-miaox@cn.fujitsu.com> <1368604111-25073-7-git-send-email-miaox@cn.fujitsu.com> <20130516033645.GF20202@liubo.jp.oracle.com> <5194610F.1000603@cn.fujitsu.com> <20130516051556.GH20202@liubo.jp.oracle.com> <51946FD3.5000008@cn.fujitsu.com> <20130516061552.GI20202@liubo.jp.oracle.com> <5194893D.90505@cn.fujitsu.com> <20130516115417.24668.98321@localhost.localdomain> <20130516143138.GL20202@liubo.jp.oracle.com> Message-ID: <20130516143455.24668.84660@localhost.localdomain> Subject: Re: [PATCH 06/17] Btrfs: introduce grab/put functions for the root of the fs/file tree Date: Thu, 16 May 2013 10:34:55 -0400 Sender: linux-btrfs-owner@vger.kernel.org List-ID: Quoting Liu Bo (2013-05-16 10:31:39) > On Thu, May 16, 2013 at 07:54:17AM -0400, Chris Mason wrote: > > Quoting Miao Xie (2013-05-16 03:22:37) > > > > I must say that the patch itself looks harmless, the reason is not good enough. > > > > > > I don't agree with you. > > > It is perishing that The memory reclaim task is blocked for a long time. We should avoid > > > this problem. > > > > synchronize_rcu and friends can take a very very long time. I like this > > patch as a way to avoid them, it's just keeps the whole kernel moving. > > > > -chris > > Okay, that teaches me another lesson, thanks Miao :) Actually using the rcu api isn't a huge impact. It's just the synchronize_rcu variants that should be avoided ;) -chris