diff options
author | Parav Pandit <parav@mellanox.com> | 2020-07-21 19:53:53 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-21 16:14:58 -0700 |
commit | 336ce1c93293e1e606fbc557587b1a1f8630cd5c (patch) | |
tree | 473bb69a288e403ca38a1dad2571af13dbb92dc0 /include/net/devlink.h | |
parent | 9232a3e67b212f9ef924786f8dde23080acd321a (diff) |
devlink: Add comment for devlink instance lock
Add comment to describe the purpose of devlink instance lock.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/devlink.h')
-rw-r--r-- | include/net/devlink.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/net/devlink.h b/include/net/devlink.h index 913e8679ae35..19d990c8edcc 100644 --- a/include/net/devlink.h +++ b/include/net/devlink.h @@ -40,7 +40,9 @@ struct devlink { struct xarray snapshot_ids; struct device *dev; possible_net_t _net; - struct mutex lock; + struct mutex lock; /* Serializes access to devlink instance specific objects such as + * port, sb, dpipe, resource, params, region, traps and more. + */ u8 reload_failed:1, reload_enabled:1, registered:1; |