sock: Use sock_owned_by_user_nocheck() instead of sk_lock.owned.
authorKuniyuki Iwashima <kuniyu@amazon.co.jp>
Wed, 8 Dec 2021 06:21:58 +0000 (15:21 +0900)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Dec 2021 03:43:00 +0000 (19:43 -0800)
commit33d60fbd21fa6f71a88571209e301ec6de59f81b
tree3e163274b8b1a636ab4b5aaf05fd0370ea806ff5
parentbe3158290db8376f49a92d30791dd8899f748aed
sock: Use sock_owned_by_user_nocheck() instead of sk_lock.owned.

This patch moves sock_release_ownership() down in include/net/sock.h and
replaces some sk_lock.owned tests with sock_owned_by_user_nocheck().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Link: https://lore.kernel.org/r/20211208062158.54132-1-kuniyu@amazon.co.jp
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/sock.h
net/core/sock.c
net/llc/llc_proc.c