Re: Why hold device_lock when calling callback in pci_walk_bus?

2012-09-28 Thread Huang Ying
ice_lock when calling callback in pci_walk_bus? > > Hi, All, > > If my understanding were correct, device_lock is used to provide mutual > exclusion between device probe/remove/suspend/resume etc. Why hold > device_lock when calling callback in pci_walk_bus. > > T

RE: Why hold device_lock when calling callback in pci_walk_bus?

2012-09-28 Thread Zhang, Yanmin
...@google.com Cc: Greg Kroah-Hartman; Zhang, Yanmin; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; r...@sisk.pl Subject: Why hold device_lock when calling callback in pci_walk_bus? Hi, All, If my understanding were correct, device_lock is used to provide mutual exclusion between device

Why hold device_lock when calling callback in pci_walk_bus?

2012-09-28 Thread Huang Ying
Hi, All, If my understanding were correct, device_lock is used to provide mutual exclusion between device probe/remove/suspend/resume etc. Why hold device_lock when calling callback in pci_walk_bus. This is introduced by the following commit. commit d71374dafbba7ec3f67371d3b7e9f6310a588808

Why hold device_lock when calling callback in pci_walk_bus?

2012-09-28 Thread Huang Ying
Hi, All, If my understanding were correct, device_lock is used to provide mutual exclusion between device probe/remove/suspend/resume etc. Why hold device_lock when calling callback in pci_walk_bus. This is introduced by the following commit. commit d71374dafbba7ec3f67371d3b7e9f6310a588808

RE: Why hold device_lock when calling callback in pci_walk_bus?

2012-09-28 Thread Zhang, Yanmin
...@google.com Cc: Greg Kroah-Hartman; Zhang, Yanmin; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; r...@sisk.pl Subject: Why hold device_lock when calling callback in pci_walk_bus? Hi, All, If my understanding were correct, device_lock is used to provide mutual exclusion between device

Re: Why hold device_lock when calling callback in pci_walk_bus?

2012-09-28 Thread Huang Ying
Ying -Original Message- From: Huang, Ying Sent: Friday, September 28, 2012 4:15 PM To: bhelg...@google.com Cc: Greg Kroah-Hartman; Zhang, Yanmin; linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; r...@sisk.pl Subject: Why hold device_lock when calling callback in pci_walk_bus