vmpressure: change vmpressure::sr_lock to spinlock
commit22f2020f84c6da2dd0acb2dce12e39e59ff7c8be
authorMichal Hocko <mhocko@suse.cz>
Wed, 31 Jul 2013 20:53:48 +0000 (31 13:53 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 31 Jul 2013 21:41:03 +0000 (31 14:41 -0700)
tree34188bc4df41de78fbbc4c45c8b913ea8f7f7761
parent62e32ac3505a0cab1c5ef8ea2c0eab3b26ed855f
vmpressure: change vmpressure::sr_lock to spinlock

There is nothing that can sleep inside critical sections protected by
this lock and those sections are really small so there doesn't make much
sense to use mutex for them.  Change the log to a spinlock

Signed-off-by: Michal Hocko <mhocko@suse.cz>
Reported-by: Tejun Heo <tj@kernel.org>
Cc: Anton Vorontsov <anton.vorontsov@linaro.org>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Cc: Li Zefan <lizefan@huawei.com>
Reviewed-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/vmpressure.h
mm/vmpressure.c