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

Matan Azrad matan at mellanox.com
Mon May 21 19:28:52 CEST 2018



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 bus driver.
> 
> Fixes: 35f462839b69 ("bus/vdev: add lock on device list")
> 
> Signed-off-by: Thomas Monjalon <thomas at monjalon.net>
Tested-by: Matan Azrad <matan at mellanox.com>


More information about the dev mailing list