[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <28c262360808040736u7f364fc0p28d7ceea7303a626@mail.gmail.com>
Date: Mon, 4 Aug 2008 23:36:25 +0900
From: "MinChan Kim" <minchan.kim@...il.com>
To: "KAMEZAWA Hiroyuki" <kamezawa.hiroyu@...fujitsu.com>,
"Balbir Singh" <balbir@...ux.vnet.ibm.com>
Cc: linux-mm <linux-mm@...ck.org>, "Rik van Riel" <riel@...hat.com>,
"KOSAKI Motohiro" <kosaki.motohiro@...fujitsu.com>,
"Lee Schermerhorn" <lee.schermerhorn@...com>,
LKML <linux-kernel@...r.kernel.org>
Subject: Race condition between putback_lru_page and mem_cgroup_move_list
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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists