All of lore.kernel.org
 help / color / mirror / Atom feed
* Race condition between putback_lru_page and mem_cgroup_move_list
@ 2008-08-04 14:36 ` MinChan Kim
  0 siblings, 0 replies; 28+ messages in thread
From: MinChan Kim @ 2008-08-04 14:36 UTC (permalink / raw)
  To: KAMEZAWA Hiroyuki, Balbir Singh
  Cc: linux-mm, Rik van Riel, KOSAKI Motohiro, Lee Schermerhorn, LKML

I think this is a race condition if mem_cgroup_move_lists's comment isn't right.
I am not sure that it was already known problem.

mem_cgroup_move_lists assume the appropriate zone's lru lock is already held.
but putback_lru_page calls mem_cgroup_move_lists without holding lru_lock.

Repeatedly, spin_[un/lock]_irq use in mem_cgroup_move_list have a big overhead
while doing list iteration.

Do we have to use pagevec ?

-- 
Kinds regards,
MinChan Kim

^ permalink raw reply	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2008-08-07 12:42 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-04 14:36 Race condition between putback_lru_page and mem_cgroup_move_list MinChan Kim
2008-08-04 14:36 ` MinChan Kim
2008-08-04 15:31 ` Lee Schermerhorn
2008-08-04 15:31   ` Lee Schermerhorn
2008-08-04 16:37   ` KOSAKI Motohiro
2008-08-04 16:37     ` KOSAKI Motohiro
2008-08-04 17:52     ` Balbir Singh
2008-08-04 17:52       ` Balbir Singh
2008-08-04 23:52       ` MinChan Kim
2008-08-04 23:52         ` MinChan Kim
2008-08-05  3:49       ` kamezawa.hiroyu
2008-08-05  3:49         ` kamezawa.hiroyu
2008-08-05  6:20       ` KOSAKI Motohiro
2008-08-05  6:20         ` KOSAKI Motohiro
2008-08-05 10:46         ` Balbir Singh
2008-08-05 10:46           ` Balbir Singh
2008-08-05 11:19           ` KOSAKI Motohiro
2008-08-05 11:19             ` KOSAKI Motohiro
2008-08-05 11:38             ` KOSAKI Motohiro
2008-08-05 11:38               ` KOSAKI Motohiro
2008-08-06 16:53       ` Lee Schermerhorn
2008-08-06 16:53         ` Lee Schermerhorn
2008-08-07 11:00         ` KOSAKI Motohiro
2008-08-07 11:00           ` KOSAKI Motohiro
2008-08-07 11:27           ` Lee Schermerhorn
2008-08-07 11:27             ` Lee Schermerhorn
2008-08-07 12:42         ` Balbir Singh
2008-08-07 12:42           ` Balbir Singh

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.