Commit 336ce1c9 authored by Parav Pandit's avatar Parav Pandit Committed by David S. Miller

devlink: Add comment for devlink instance lock

Add comment to describe the purpose of devlink instance lock.
Signed-off-by: default avatarParav Pandit <parav@mellanox.com>
Reviewed-by: default avatarJiri Pirko <jiri@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 9232a3e6
...@@ -40,7 +40,9 @@ struct devlink { ...@@ -40,7 +40,9 @@ struct devlink {
struct xarray snapshot_ids; struct xarray snapshot_ids;
struct device *dev; struct device *dev;
possible_net_t _net; 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, u8 reload_failed:1,
reload_enabled:1, reload_enabled:1,
registered:1; registered:1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment