net/sched: taprio: remove unnecessary taprio_list_lock
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 21 Sep 2022 09:56:31 +0000 (12:56 +0300)
committerJakub Kicinski <kuba@kernel.org>
Fri, 23 Sep 2022 00:28:51 +0000 (17:28 -0700)
commita2c2a4ddc27db1715be8c03280c6cb7b808dd8b7
tree8dc965854fcdd44dcc079e9bf13e43907622822b
parent03d25cf7a0e9e83448a67cd1e3c51712f3273984
net/sched: taprio: remove unnecessary taprio_list_lock

The 3 functions that want access to the taprio_list:
taprio_dev_notifier(), taprio_destroy() and taprio_init() are all called
with the rtnl_mutex held, therefore implicitly serialized with respect
to each other. A spin lock serves no purpose.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Acked-by: Vinicius Costa Gomes <vinicius.gomes@intel.com>
Link: https://lore.kernel.org/r/20220921095632.1379251-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/sched/sch_taprio.c