Re: [dpdk-dev] [PATCH] bus/vdev: reduce scope of device list lock

2018-05-22 Thread Thomas Monjalon
22/05/2018 11:05, Burakov, Anatoly: > On 21-May-18 5:11 PM, Thomas Monjalon wrote: > > The lock vdev_device_list_lock was taken before calling > > "remove" function for the device. > > So it prevents to remove sub-devices (as in failsafe) inside > > its own "remove" function, because of a deadlock.

Re: [dpdk-dev] [PATCH] bus/vdev: reduce scope of device list lock

2018-05-22 Thread Burakov, Anatoly
On 21-May-18 5:11 PM, Thomas Monjalon wrote: The lock vdev_device_list_lock was taken before calling "remove" function for the device. So it prevents to remove sub-devices (as in failsafe) inside its own "remove" function, because of a deadlock. The lock is now only protecting the device list in

[dpdk-dev] [PATCH] bus/vdev: reduce scope of device list lock

2018-05-21 Thread Thomas Monjalon
The lock vdev_device_list_lock was taken before calling "remove" function for the device. So it prevents to remove sub-devices (as in failsafe) inside its own "remove" function, because of a deadlock. The lock is now only protecting the device list inside the bus driver. Fixes: 35f462839b69 ("bus