aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorKuniyuki Iwashima <kuniyu@amazon.com>2024-09-05 12:32:39 -0700
committerJakub Kicinski <kuba@kernel.org>2024-09-09 17:14:26 -0700
commita0264a9f51fe0d196f22efd7538eb749e3448c2d (patch)
tree7995268cd33323d98330f6b4ca81662234468cd9 /tools/testing
parentaf_unix: Rename unlinked_skb in manage_oob(). (diff)
downloadlinux-a0264a9f51fe0d196f22efd7538eb749e3448c2d.tar.gz
linux-a0264a9f51fe0d196f22efd7538eb749e3448c2d.zip
af_unix: Move spin_lock() in manage_oob().
When OOB skb has been already consumed, manage_oob() returns the next skb if exists. In such a case, we need to fall back to the else branch below. Then, we want to keep holding spin_lock(&sk->sk_receive_queue.lock). Let's move it out of if-else branch and add lightweight check before spin_lock() for major use cases without OOB skb. Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com> Link: https://patch.msgid.link/20240905193240.17565-4-kuniyu@amazon.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions