Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758288AbYFIFf1 (ORCPT ); Mon, 9 Jun 2008 01:35:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758211AbYFIFes (ORCPT ); Mon, 9 Jun 2008 01:34:48 -0400 Received: from fgwmail6.fujitsu.co.jp ([192.51.44.36]:58356 "EHLO fgwmail6.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752266AbYFIFeB (ORCPT ); Mon, 9 Jun 2008 01:34:01 -0400 Message-ID: <484CC08E.8050106@np.css.fujitsu.com> Date: Mon, 09 Jun 2008 14:33:02 +0900 From: Kentaro Makita User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: linux-kernel@vger.kernel.org Cc: linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org, viro@ZenIV.linux.org.uk, harvey.harrison@gmail.com Subject: [PATCH -mm 2/2] vfs: add cond_resched_lock while scanning dentry LRU lists Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 818 Lines: 31 o add cond_resched_lock(&dcache_lock) while scanning LRU lists on superblocks in __shrink_dcache_sb() Signed-off-by: Kentaro Makita --- fs/dcache.c | 1 + 1 files changed, 1 insertion(+) Index: b/fs/dcache.c =================================================================== --- a/fs/dcache.c 2008-06-05 11:48:57.000000000 +0900 +++ b/fs/dcache.c 2008-06-05 11:49:19.000000000 +0900 @@ -484,6 +484,7 @@ restart: if (--cnt == 0) break; } + cond_resched_lock(&dcache_lock); } } while (!list_empty(&tmp)) { -- 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/