net: devlink: enable parallel ops on netlink interface
authorJiri Pirko <jiri@nvidia.com>
Fri, 29 Jul 2022 07:10:38 +0000 (09:10 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Aug 2022 11:14:00 +0000 (12:14 +0100)
As the devlink_mutex was removed and all devlink instances are protected
individually by devlink->lock mutex, allow the netlink ops to run
in parallel and therefore allow user to execute commands on multiple
devlink instances simultaneously.

Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c

index 06cd7c1..889e7e3 100644 (file)
@@ -9505,6 +9505,7 @@ static struct genl_family devlink_nl_family __ro_after_init = {
        .maxattr        = DEVLINK_ATTR_MAX,
        .policy = devlink_nl_policy,
        .netnsok        = true,
+       .parallel_ops   = true,
        .pre_doit       = devlink_nl_pre_doit,
        .post_doit      = devlink_nl_post_doit,
        .module         = THIS_MODULE,