public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Kentaro Makita <k-makita@np.css.fujitsu.com>
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
Date: Mon, 09 Jun 2008 14:33:02 +0900	[thread overview]
Message-ID: <484CC08E.8050106@np.css.fujitsu.com> (raw)

o add cond_resched_lock(&dcache_lock) while scanning LRU lists on superblocks
  in __shrink_dcache_sb()

Signed-off-by: Kentaro Makita <k-makita@np.css.fujitsu.com>
---
 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)) {







                 reply	other threads:[~2008-06-09  5:35 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=484CC08E.8050106@np.css.fujitsu.com \
    --to=k-makita@np.css.fujitsu.com \
    --cc=akpm@linux-foundation.org \
    --cc=harvey.harrison@gmail.com \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=viro@ZenIV.linux.org.uk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox