diff options
Diffstat (limited to 'net/sunrpc/xprtsock.c')
-rw-r--r-- | net/sunrpc/xprtsock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c index 6f32cc57f429..02298f529dad 100644 --- a/net/sunrpc/xprtsock.c +++ b/net/sunrpc/xprtsock.c | |||
@@ -1350,7 +1350,7 @@ static inline void xs_reclassify_socket4(struct socket *sock) | |||
1350 | { | 1350 | { |
1351 | struct sock *sk = sock->sk; | 1351 | struct sock *sk = sock->sk; |
1352 | 1352 | ||
1353 | BUG_ON(sk->sk_lock.owner != NULL); | 1353 | BUG_ON(sock_owned_by_user(sk)); |
1354 | sock_lock_init_class_and_name(sk, "slock-AF_INET-RPC", | 1354 | sock_lock_init_class_and_name(sk, "slock-AF_INET-RPC", |
1355 | &xs_slock_key[0], "sk_lock-AF_INET-RPC", &xs_key[0]); | 1355 | &xs_slock_key[0], "sk_lock-AF_INET-RPC", &xs_key[0]); |
1356 | } | 1356 | } |
@@ -1359,7 +1359,7 @@ static inline void xs_reclassify_socket6(struct socket *sock) | |||
1359 | { | 1359 | { |
1360 | struct sock *sk = sock->sk; | 1360 | struct sock *sk = sock->sk; |
1361 | 1361 | ||
1362 | BUG_ON(sk->sk_lock.owner != NULL); | 1362 | BUG_ON(sock_owned_by_user(sk)); |
1363 | sock_lock_init_class_and_name(sk, "slock-AF_INET6-RPC", | 1363 | sock_lock_init_class_and_name(sk, "slock-AF_INET6-RPC", |
1364 | &xs_slock_key[1], "sk_lock-AF_INET6-RPC", &xs_key[1]); | 1364 | &xs_slock_key[1], "sk_lock-AF_INET6-RPC", &xs_key[1]); |
1365 | } | 1365 | } |