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 <[email protected]>
Signed-Off-By: Pavel Emelianov <[email protected]>
Signed-Off-By: Kirill Korotaev <[email protected]>
Thanks,
Kirill
--- ./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);
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]