net: Generalise wq_has_sleeper helper
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 26 Nov 2015 05:55:39 +0000 (13:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 30 Nov 2015 19:47:33 +0000 (14:47 -0500)
commit1ce0bf50ae2233c7115a18c0c623662d177b434c
tree41860e17fe4b2184055d29e669e503d09796775a
parentc52fd05a2ff2ad20e2a7056baf314c7d1d624ba9
net: Generalise wq_has_sleeper helper

The memory barrier in the helper wq_has_sleeper is needed by just
about every user of waitqueue_active.  This patch generalises it
by making it take a wait_queue_head_t directly.  The existing
helper is renamed to skwq_has_sleeper.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
13 files changed:
crypto/algif_aead.c
crypto/algif_skcipher.c
include/linux/wait.h
include/net/sock.h
net/atm/common.c
net/core/sock.c
net/core/stream.c
net/dccp/output.c
net/iucv/af_iucv.c
net/rxrpc/af_rxrpc.c
net/sctp/socket.c
net/tipc/socket.c
net/unix/af_unix.c