mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
Merge branch 'iocb' into for-davem
trivial conflict in net/socket.c and non-trivial one in crypto - that one had evaded aio_complete() removal. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
+3
-3
@@ -808,10 +808,10 @@ static ssize_t sock_read_iter(struct kiocb *iocb, struct iov_iter *to)
|
||||
if (iocb->ki_pos != 0)
|
||||
return -ESPIPE;
|
||||
|
||||
if (iocb->ki_nbytes == 0) /* Match SYS5 behaviour */
|
||||
if (!iov_iter_count(to)) /* Match SYS5 behaviour */
|
||||
return 0;
|
||||
|
||||
res = sock_recvmsg(sock, &msg, iocb->ki_nbytes, msg.msg_flags);
|
||||
res = sock_recvmsg(sock, &msg, iov_iter_count(to), msg.msg_flags);
|
||||
*to = msg.msg_iter;
|
||||
return res;
|
||||
}
|
||||
@@ -833,7 +833,7 @@ static ssize_t sock_write_iter(struct kiocb *iocb, struct iov_iter *from)
|
||||
if (sock->type == SOCK_SEQPACKET)
|
||||
msg.msg_flags |= MSG_EOR;
|
||||
|
||||
res = sock_sendmsg(sock, &msg, iocb->ki_nbytes);
|
||||
res = sock_sendmsg(sock, &msg, iov_iter_count(from));
|
||||
*from = msg.msg_iter;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user