From: David Sterba Subject: Re: [PATCH 1/2 RESEND] vfs: re-implement writeback_inodes_sb(_nr)_if_idle() and rename them Date: Tue, 9 Oct 2012 12:25:04 +0200 Message-ID: <20121009102504.GM4405@twin.jikos.cz> References: <503DB3E8.1000308@cn.fujitsu.com> <20120905155403.GL17430@twin.jikos.cz> Reply-To: dave@jikos.cz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: Miao Xie , Linux Kernel , Linux Btrfs , Linux Fsdevel , Linux Ext4 , viro , Christoph Hellwig , Kamal Mostafa Return-path: Content-Disposition: inline In-Reply-To: <20120905155403.GL17430@twin.jikos.cz> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-ext4.vger.kernel.org On Wed, Sep 05, 2012 at 05:54:04PM +0200, David Sterba wrote: > > Many users who use btrfs met the deadlock problem caused by writeback_inodes_sb(_nr)_if_idle(), > > so I send this patch again and hope it will be received as soon as possible if nobody objects. > > Yes please, this makes testing of the 'autodefrag' mount option hard as > the deadlock occurs frequently upon umount (when there's a background > snapshot cleanup in progress). We have another report of the deadlock and it's without 'autodefrag' mount, triggered by snapshot cleaning under low space conditions. I have added the patch to SLES kernel some time ago and haven't observed the deadlock since. Please queue the patch for 3.7, we cannot fix it locally within btrfs. Thanks, david