[PATCH] Reduce sched latency in shrink_dcache_sb()
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> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
4ffc844425
commit
2ab1346085
@@ -489,6 +489,7 @@ repeat:
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
prune_one_dentry(dentry);
|
prune_one_dentry(dentry);
|
||||||
|
cond_resched_lock(&dcache_lock);
|
||||||
goto repeat;
|
goto repeat;
|
||||||
}
|
}
|
||||||
spin_unlock(&dcache_lock);
|
spin_unlock(&dcache_lock);
|
||||||
|
Reference in New Issue
Block a user