aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorCong Wang <[email protected]>2018-12-29 13:56:38 -0800
committerDavid S. Miller <[email protected]>2018-12-30 20:24:16 -0800
commit7314f5480f3e37e570104dc5e0f28823ef849e72 (patch)
treefbe09ebb46b892704e3cf8b0d7cafc963aa6c0b4 /tools/perf/scripts/python/export-to-postgresql.py
parentd5c7c745f254c6cb98b3b3f15fe789b8bd770c72 (diff)
netrom: fix locking in nr_find_socket()
nr_find_socket(), nr_find_peer() and nr_find_listener() lock the sock after finding it in the global list. However, the call path requires BH disabled for the sock lock consistently. Actually the locking is unnecessary at this point, we can just hold the sock refcnt to make sure it is not gone after we unlock the global list, and lock it later only when needed. Reported-and-tested-by: [email protected] Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions