All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kirill Korotaev <dev@openvz.org>
To: Andrew Morton <akpm@osdl.org>, Linus Torvalds <torvalds@osdl.org>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: [PATCH] Reduce sched latency in shrink_dcache_sb()
Date: Thu, 09 Mar 2006 20:26:47 +0300	[thread overview]
Message-ID: <44106557.5010004@openvz.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 342 bytes --]

This patch reduces scheduling latency in shrink_dcache_sb()
noticed during remounting of big partitions with many cached dentries.
The same latency fix was applied to select_parent() long ago.

Signed-Off-By: Denis Lunev <den@sw.ru>
Signed-Off-By: Pavel Emelianov <xemul@sw.ru>
Signed-Off-By: Kirill Korotaev <dev@openvz.org>

Thanks,
Kirill

[-- Attachment #2: diff-ms-shrink-dcache-latency2 --]
[-- Type: text/plain, Size: 273 bytes --]

--- ./fs/dcache.c.lat	2006-03-09 16:03:44.000000000 +0300
+++ ./fs/dcache.c	2006-03-09 20:19:41.000000000 +0300
@@ -491,6 +491,7 @@ repeat:
 			continue;
 		}
 		prune_one_dentry(dentry);
+		cond_resched_lock(&dcache_lock);
 		goto repeat;
 	}
 	spin_unlock(&dcache_lock);

                 reply	other threads:[~2006-03-09 17:22 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=44106557.5010004@openvz.org \
    --to=dev@openvz.org \
    --cc=akpm@osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@osdl.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.