memcg: move page-freeing code out of lock
commit6a5b18d2bd79795407bf65451a2013bf4dfb588b
authorNamhyung Kim <namhyung@gmail.com>
Thu, 26 May 2011 23:25:31 +0000 (26 16:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2011 00:12:35 +0000 (26 17:12 -0700)
tree0db53d8192c1beedf1628918feb91bec93e2537f
parent33278f7f0a9e5a9b29f59e07b7e3182d27769ac2
memcg: move page-freeing code out of lock

Move page-freeing code out of swap_cgroup_mutex in the hope that it could
reduce few of theoretical contentions between swapons and/or swapoffs.

This is just a cleanup, no functional changes.

Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Acked-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Cc: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/page_cgroup.c