diff options
author | Eric Dumazet <edumazet@google.com> | 2019-10-23 22:44:50 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-10 11:27:48 +0100 |
commit | eaf548feaa17308317bdac2903c1be820e5c186a (patch) | |
tree | 17b7f602330726cd6eea5e4e04f367ed9129ec8e /net/atm | |
parent | afa1f5e98c1114d509a9c73747f0940de70bb494 (diff) | |
download | linux-stable-eaf548feaa17308317bdac2903c1be820e5c186a.tar.gz linux-stable-eaf548feaa17308317bdac2903c1be820e5c186a.tar.bz2 linux-stable-eaf548feaa17308317bdac2903c1be820e5c186a.zip |
net: use skb_queue_empty_lockless() in poll() handlers
[ Upstream commit 3ef7cf57c72f32f61e97f8fa401bc39ea1f1a5d4 ]
Many poll() handlers are lockless. Using skb_queue_empty_lockless()
instead of skb_queue_empty() is more appropriate.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/atm')
-rw-r--r-- | net/atm/common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/atm/common.c b/net/atm/common.c index a38c174fc766..6772eddf6ec0 100644 --- a/net/atm/common.c +++ b/net/atm/common.c @@ -667,7 +667,7 @@ __poll_t vcc_poll(struct file *file, struct socket *sock, poll_table *wait) mask |= EPOLLHUP; /* readable? */ - if (!skb_queue_empty(&sk->sk_receive_queue)) + if (!skb_queue_empty_lockless(&sk->sk_receive_queue)) mask |= EPOLLIN | EPOLLRDNORM; /* writable? */ |