diff options
Diffstat (limited to 'net/sunrpc/svcsock.c')
-rw-r--r-- | net/sunrpc/svcsock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/net/sunrpc/svcsock.c b/net/sunrpc/svcsock.c index 03827cef1fa7..cc3020d16789 100644 --- a/net/sunrpc/svcsock.c +++ b/net/sunrpc/svcsock.c | |||
@@ -84,7 +84,11 @@ static struct lock_class_key svc_slock_key[2]; | |||
84 | static void svc_reclassify_socket(struct socket *sock) | 84 | static void svc_reclassify_socket(struct socket *sock) |
85 | { | 85 | { |
86 | struct sock *sk = sock->sk; | 86 | struct sock *sk = sock->sk; |
87 | BUG_ON(sock_owned_by_user(sk)); | 87 | |
88 | WARN_ON_ONCE(sock_owned_by_user(sk)); | ||
89 | if (sock_owned_by_user(sk)) | ||
90 | return; | ||
91 | |||
88 | switch (sk->sk_family) { | 92 | switch (sk->sk_family) { |
89 | case AF_INET: | 93 | case AF_INET: |
90 | sock_lock_init_class_and_name(sk, "slock-AF_INET-NFSD", | 94 | sock_lock_init_class_and_name(sk, "slock-AF_INET-NFSD", |