aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorDennis Dalessandro <[email protected]>2020-02-25 14:54:45 -0500
committerJason Gunthorpe <[email protected]>2020-03-02 11:10:21 -0400
commit817a68a6584aa08e323c64283fec5ded7be84759 (patch)
tree643c30c1add80c466d1033ed155fcdbb04f8e2d9 /tools/perf/scripts/python/net_dropmonitor.py
parent801b67f3eaafd3f2ec8b65d93142d4ffedba85df (diff)
IB/hfi1, qib: Ensure RCU is locked when accessing list
The packet handling function, specifically the iteration of the qp list for mad packet processing misses locking RCU before running through the list. Not only is this incorrect, but the list_for_each_entry_rcu() call can not be called with a conditional check for lock dependency. Remedy this by invoking the rcu lock and unlock around the critical section. This brings MAD packet processing in line with what is done for non-MAD packets. Fixes: 7724105686e7 ("IB/hfi1: add driver files") Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Mike Marciniszyn <[email protected]> Signed-off-by: Dennis Dalessandro <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions