[PATCH] swsusp: add locking to software_resume
commitdd5d666b7995e542b7f81a4bb1c7ad634f4f6c51
authorShaohua Li <shaohua.li@intel.com>
Sat, 3 Sep 2005 22:57:04 +0000 (3 15:57 -0700)
committerLinus Torvalds <torvalds@evo.osdl.org>
Mon, 5 Sep 2005 07:06:17 +0000 (5 00:06 -0700)
treede010e4bd66681ec75657746d652eb89f08142b7
parent6ed9fcec85d5ef0e34ea18affe95e4a246714565
[PATCH] swsusp: add locking to software_resume

It is trying to protect swsusp_resume_device and software_resume() from two
users banging it from userspace at the same time.

Signed-off-by: Shaohua Li <shaohua.li@intel.com>
Signed-off-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
kernel/power/disk.c