commit | adc6462376b1a22d486ab5f6e624ba9528a380da | [log] [tgz] |
---|---|---|
author | Jiri Pirko <jiri@nvidia.com> | Mon Apr 18 09:42:32 2022 +0300 |
committer | David S. Miller <davem@davemloft.net> | Mon Apr 18 11:00:18 2022 +0100 |
tree | 897dc2104df9d1a01287aab84dc093fc874c7241 | |
parent | ebf0c53417319ff568d9b6238a60ba27395385f3 [diff] |
mlxsw: Narrow the critical section of devl_lock during ports creation/removal No need to hold the lock for alloc and freecpu. So narrow the critical section. Follow-up patch is going to benefit from this by adding more code to the functions which will be out of the critical as well. Signed-off-by: Jiri Pirko <jiri@nvidia.com> Signed-off-by: Ido Schimmel <idosch@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>