mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 23:03:57 -04:00
netdevsim: convert driver to use unlocked devlink API during init/fini
Prepare for devlink reload being called with devlink->lock held and convert the netdevsim driver to use unlocked devlink API during init and fini flows. Take devl_lock() in reload_down() and reload_up() ops in the meantime before reload cmd is converted to take the lock itself. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
eb0e9fa2c6
commit
012ec02ae4
@@ -376,9 +376,6 @@ struct nsim_bus_dev {
|
||||
*/
|
||||
unsigned int max_vfs;
|
||||
unsigned int num_vfs;
|
||||
/* Lock for devlink->reload_enabled in netdevsim module */
|
||||
struct mutex nsim_bus_reload_lock;
|
||||
bool in_reload;
|
||||
bool init;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user