Kenji Kaneshige dd5619cb44 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 <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2006-10-18 11:36:10 -07:00
..
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-09-26 17:43:53 -07:00
2006-03-23 14:35:17 -08:00
2006-10-03 22:36:44 +02:00
2006-06-28 03:08:06 -04:00
2006-10-18 11:36:10 -07:00
2006-10-18 11:36:10 -07:00
2006-10-18 11:36:10 -07:00
2006-10-18 11:36:10 -07:00
2005-04-16 15:20:36 -07:00
2006-09-26 17:43:53 -07:00