]> err.no Git - linux-2.6/commit
[PATCH] shpchp - bugfix: add missing serialization
authorKenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Thu, 26 Jan 2006 01:00:33 +0000 (10:00 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 23 Mar 2006 22:35:11 +0000 (14:35 -0800)
commitef3be54777901e570185089f21fbe4498453f67e
tree6b03aacd9c9c99ec2160014e0d64415893f6f9f7
parentd29aaddab3ef3bdaecf3c9c6d9423f0bf0452ccf
[PATCH] shpchp - bugfix: add missing serialization

Current shpchp driver might cause system panic because of lack of
serialization. It can be reproduced very easily by the following
operation.

# cd /sys/bus/pci/slots/<slot#>
# while true; do echo 0 > power ; echo 1 > power ; done &
# while true; do echo 0 > power ; echo 1 > power ; done &

This patch fixes this issue by changing shpchp to get appropreate
semaphore for hot-plug operation.

Signed-off-by: Kenji Kaneshige <kaneshige.kenji@jp.fujitsu.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/hotplug/shpchp_ctrl.c