mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
Merge branch 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs
Pull aio updates from Al Viro: "Majority of AIO stuff this cycle. aio-fsync and aio-poll, mostly. The only thing I'm holding back for a day or so is Adam's aio ioprio - his last-minute fixup is trivial (missing stub in !CONFIG_BLOCK case), but let it sit in -next for decency sake..." * 'work.aio-1' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs: (46 commits) aio: sanitize the limit checking in io_submit(2) aio: fold do_io_submit() into callers aio: shift copyin of iocb into io_submit_one() aio_read_events_ring(): make a bit more readable aio: all callers of aio_{read,write,fsync,poll} treat 0 and -EIOCBQUEUED the same way aio: take list removal to (some) callers of aio_complete() aio: add missing break for the IOCB_CMD_FDSYNC case random: convert to ->poll_mask timerfd: convert to ->poll_mask eventfd: switch to ->poll_mask pipe: convert to ->poll_mask crypto: af_alg: convert to ->poll_mask net/rxrpc: convert to ->poll_mask net/iucv: convert to ->poll_mask net/phonet: convert to ->poll_mask net/nfc: convert to ->poll_mask net/caif: convert to ->poll_mask net/bluetooth: convert to ->poll_mask net/sctp: convert to ->poll_mask net/tipc: convert to ->poll_mask ...
This commit is contained in:
commit
408afb8d78
99 changed files with 891 additions and 637 deletions
|
@ -340,15 +340,12 @@ static int pn_socket_getname(struct socket *sock, struct sockaddr *addr,
|
|||
return sizeof(struct sockaddr_pn);
|
||||
}
|
||||
|
||||
static __poll_t pn_socket_poll(struct file *file, struct socket *sock,
|
||||
poll_table *wait)
|
||||
static __poll_t pn_socket_poll_mask(struct socket *sock, __poll_t events)
|
||||
{
|
||||
struct sock *sk = sock->sk;
|
||||
struct pep_sock *pn = pep_sk(sk);
|
||||
__poll_t mask = 0;
|
||||
|
||||
poll_wait(file, sk_sleep(sk), wait);
|
||||
|
||||
if (sk->sk_state == TCP_CLOSE)
|
||||
return EPOLLERR;
|
||||
if (!skb_queue_empty(&sk->sk_receive_queue))
|
||||
|
@ -448,7 +445,7 @@ const struct proto_ops phonet_dgram_ops = {
|
|||
.socketpair = sock_no_socketpair,
|
||||
.accept = sock_no_accept,
|
||||
.getname = pn_socket_getname,
|
||||
.poll = datagram_poll,
|
||||
.poll_mask = datagram_poll_mask,
|
||||
.ioctl = pn_socket_ioctl,
|
||||
.listen = sock_no_listen,
|
||||
.shutdown = sock_no_shutdown,
|
||||
|
@ -473,7 +470,7 @@ const struct proto_ops phonet_stream_ops = {
|
|||
.socketpair = sock_no_socketpair,
|
||||
.accept = pn_socket_accept,
|
||||
.getname = pn_socket_getname,
|
||||
.poll = pn_socket_poll,
|
||||
.poll_mask = pn_socket_poll_mask,
|
||||
.ioctl = pn_socket_ioctl,
|
||||
.listen = pn_socket_listen,
|
||||
.shutdown = sock_no_shutdown,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue