aboutsummaryrefslogtreecommitdiffstats
path: root/net/sunrpc/xprtsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r--net/sunrpc/xprtsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
index 4ae7eed7f617..282efd447a61 100644
--- a/net/sunrpc/xprtsock.c
+++ b/net/sunrpc/xprtsock.c
@@ -1186,7 +1186,7 @@ static struct lock_class_key xs_slock_key[2];
1186static inline void xs_reclassify_socket(struct socket *sock) 1186static inline void xs_reclassify_socket(struct socket *sock)
1187{ 1187{
1188 struct sock *sk = sock->sk; 1188 struct sock *sk = sock->sk;
1189 BUG_ON(sk->sk_lock.owner != NULL); 1189 BUG_ON(sock_owned_by_user(sk));
1190 switch (sk->sk_family) { 1190 switch (sk->sk_family) {
1191 case AF_INET: 1191 case AF_INET:
1192 sock_lock_init_class_and_name(sk, "slock-AF_INET-NFS", 1192 sock_lock_init_class_and_name(sk, "slock-AF_INET-NFS",