From: Kenji Kaneshige Date: Fri, 22 Sep 2006 17:17:29 +0000 (-0700) Subject: pciehp - add missing locking X-Git-Tag: v2.6.19-rc3~125^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dd5619cb4407e830a8921a93c949be37c81105b5;p=pandora-kernel.git pciehp - add missing locking This patch fixes the problem that system will panic if multiple power on/off operations are issued to the same slot in parallel. This problem can be easily reproduced by commands below. # while true; do echo 1 > power; echo 0 > power; done & # while true; do echo 1 > power; echo 0 > power; done & The cause is lack of locking for enable/disable operations. This patch fixes this problem. Signed-off-by: Kenji Kaneshige Signed-off-by: Kristen Carlson Accardi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed