From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Chinner Subject: [PATCH 0/2] xfs: write back inodes during reclaim Date: Thu, 7 Apr 2011 16:19:54 +1000 Message-ID: <1302157196-1988-1-git-send-email-david@fromorbit.com> Cc: linux-fsdevel@vger.kernel.org To: xfs@oss.sgi.com Return-path: Received: from ipmail06.adl6.internode.on.net ([150.101.137.145]:46943 "EHLO ipmail06.adl6.internode.on.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751897Ab1DGGUJ (ORCPT ); Thu, 7 Apr 2011 02:20:09 -0400 Sender: linux-fsdevel-owner@vger.kernel.org List-ID: This series fixes an OOM problem where VFS-only dirty inodes accumulate on an XFS filesystem due to atime updates causing OOM to occur. The first patch fixes a deadlock triggering bdi-flusher writeback from memory reclaim when a new bdi-flusher thread needs to be forked and no memory is available. the second adds a bdi-flusher kick from XFS's inode cache shrinker so that when memory is low the VFS starts writing back dirty inodes so they can be reclaimed as they get cleaned rather than remaining dirty and pinning the inode cache in memory.