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

2018-05-22 Thread Gaƫtan Rivet
On Mon, May 21, 2018 at 05:28:52PM +, Matan Azrad wrote: > > > From: 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, beca

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

2018-05-21 Thread Matan Azrad
From: 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 bu

[dpdk-dev] [PATCH v2] bus/vdev: fix 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