diff options
| author | Thomas Gleixner <[email protected]> | 2019-11-15 10:30:50 +0100 | 
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2019-11-15 10:30:50 +0100 | 
| commit | ac94be498f84f7327533b62faca4c3da64434904 (patch) | |
| tree | 63893f37afb67cd400bf60ec16a35440d16f2a90 /net/unix/af_unix.c | |
| parent | dce7cd62754b5d4a6e401b8b0769ec94cf971041 (diff) | |
| parent | 8c5bd25bf42effd194d4b0b43895c42b374e620b (diff) | |
Merge branch 'linus' into x86/hyperv
Pick up upstream fixes to avoid conflicts.
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 67e87db5877f..0d8da809bea2 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -2599,7 +2599,7 @@ static __poll_t unix_poll(struct file *file, struct socket *sock, poll_table *wa  		mask |= EPOLLRDHUP | EPOLLIN | EPOLLRDNORM;  	/* readable? */ -	if (!skb_queue_empty(&sk->sk_receive_queue)) +	if (!skb_queue_empty_lockless(&sk->sk_receive_queue))  		mask |= EPOLLIN | EPOLLRDNORM;  	/* Connection-based need to check for termination and startup */ @@ -2628,7 +2628,7 @@ static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,  	mask = 0;  	/* exceptional events? */ -	if (sk->sk_err || !skb_queue_empty(&sk->sk_error_queue)) +	if (sk->sk_err || !skb_queue_empty_lockless(&sk->sk_error_queue))  		mask |= EPOLLERR |  			(sock_flag(sk, SOCK_SELECT_ERR_QUEUE) ? EPOLLPRI : 0); @@ -2638,7 +2638,7 @@ static __poll_t unix_dgram_poll(struct file *file, struct socket *sock,  		mask |= EPOLLHUP;  	/* readable? */ -	if (!skb_queue_empty(&sk->sk_receive_queue)) +	if (!skb_queue_empty_lockless(&sk->sk_receive_queue))  		mask |= EPOLLIN | EPOLLRDNORM;  	/* Connection-based need to check for termination and startup */ |