diff options
| author | Matthieu Baerts (NGI0) <[email protected]> | 2024-11-04 13:43:47 +0100 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-05 17:54:39 -0800 |
| commit | f2c71c49da8f8941e3e465605fc41939eee9210a (patch) | |
| tree | d2c1750225f6f71d8ea1fccd41a2dac7940c4c72 /tools/perf/scripts/python | |
| parent | dc0f314bc9c58e7e160d572b109cf0816ff21fe1 (diff) | |
mptcp: remove unneeded lock when listing scheds
mptcp_get_available_schedulers() needs to iterate over the schedulers'
list only to read the names: it doesn't modify anything there.
In this case, it is enough to hold the RCU read lock, no need to combine
this with the associated spin lock as it was done since its introduction
in commit 73c900aa3660 ("mptcp: add net.mptcp.available_schedulers").
Suggested-by: Paolo Abeni <[email protected]>
Reviewed-by: Geliang Tang <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
Link: https://patch.msgid.link/20241104-net-next-mptcp-sched-unneeded-lock-v2-1-2ccc1e0c750c@kernel.org
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions