Commit 8f254b62 authored by Ingo Molnar's avatar Ingo Molnar Committed by Linus Torvalds

[PATCH] break latency in invalidate_list()

break latency in invalidate_list().
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e2e36658
...@@ -306,6 +306,14 @@ static int invalidate_list(struct list_head *head, struct list_head *dispose) ...@@ -306,6 +306,14 @@ static int invalidate_list(struct list_head *head, struct list_head *dispose)
struct list_head * tmp = next; struct list_head * tmp = next;
struct inode * inode; struct inode * inode;
/*
* We can reschedule here without worrying about the list's
* consistency because the per-sb list of inodes must not
* change during umount anymore, and because iprune_sem keeps
* shrink_icache_memory() away.
*/
cond_resched_lock(&inode_lock);
next = next->next; next = next->next;
if (tmp == head) if (tmp == head)
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment