public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Reduce sched latency in shrink_dcache_sb()
@ 2006-03-09 17:26 Kirill Korotaev
  0 siblings, 0 replies; only message in thread
From: Kirill Korotaev @ 2006-03-09 17:26 UTC (permalink / raw)
  To: Andrew Morton, Linus Torvalds, Linux Kernel Mailing List

[-- 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);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-03-09 17:22 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-09 17:26 [PATCH] Reduce sched latency in shrink_dcache_sb() Kirill Korotaev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox