pci-sysfs: queue sysfs rescan routine into workqueue to avoid potential deadlock situation

2013-02-06 Thread Gu Zheng
There is a potential deadlock situation when we manipulate the pci-sysfs user interfaces from different bus hierarchy simultaneously, described as following: path1: sysfs remove device: | path2: sysfs rescan device: sysfs_schedule_callback_work() | sysfs_write_file()

pci-sysfs: queue sysfs rescan routine into workqueue to avoid potential deadlock situation

2013-02-06 Thread Gu Zheng
There is a potential deadlock situation when we manipulate the pci-sysfs user interfaces from different bus hierarchy simultaneously, described as following: path1: sysfs remove device: | path2: sysfs rescan device: sysfs_schedule_callback_work() | sysfs_write_file()