summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-09-20 19:52:42 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2017-12-02 20:37:47 -0500
commitc8c7840ea9459d602d6cb76ddcb166840fc4ba1f (patch)
tree7a46a12bf4140f942286a7b88dfa2a261e83a687 /fs
parent1e4ed1b7aebf2224149b521411715e1fcbc70011 (diff)
downloadop-kernel-dev-c8c7840ea9459d602d6cb76ddcb166840fc4ba1f.zip
op-kernel-dev-c8c7840ea9459d602d6cb76ddcb166840fc4ba1f.tar.gz
dlm: switch to sock_recvmsg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs')
-rw-r--r--fs/dlm/lowcomms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 0570785..cff79ea 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -675,9 +675,9 @@ static int receive_from_sock(struct connection *con)
nvec = 2;
}
len = iov[0].iov_len + iov[1].iov_len;
+ iov_iter_kvec(&msg.msg_iter, READ | ITER_KVEC, iov, nvec, len);
- r = ret = kernel_recvmsg(con->sock, &msg, iov, nvec, len,
- MSG_DONTWAIT | MSG_NOSIGNAL);
+ r = ret = sock_recvmsg(con->sock, &msg, MSG_DONTWAIT | MSG_NOSIGNAL);
if (ret <= 0)
goto out_close;
else if (ret == len)
OpenPOWER on IntegriCloud