aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorKuniyuki Iwashima <[email protected]>2024-06-20 20:56:20 +0000
committerPaolo Abeni <[email protected]>2024-06-25 09:10:18 +0000
commit8647ece4814f3bfdb5f7a8e19f882c9b89299a07 (patch)
tree01e58388818fbb445546716eb2e6a4a1d0bc471d /tools/testing/selftests/net/lib/py/utils.py
parentaf_unix: Remove U_LOCK_GC_LISTENER. (diff)
downloadkernel-8647ece4814f3bfdb5f7a8e19f882c9b89299a07.tar.gz
kernel-8647ece4814f3bfdb5f7a8e19f882c9b89299a07.zip
af_unix: Define locking order for U_RECVQ_LOCK_EMBRYO in unix_collect_skb().
While GC is cleaning up cyclic references by SCM_RIGHTS, unix_collect_skb() collects skb in the socket's recvq. If the socket is TCP_LISTEN, we need to collect skb in the embryo's queue. Then, both the listener's recvq lock and the embroy's one are held. The locking is always done in the listener -> embryo order. Let's define it as unix_recvq_lock_cmp_fn() instead of using spin_lock_nested(). Note that the reverse order is defined for consistency. Signed-off-by: Kuniyuki Iwashima <[email protected]> Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions