summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2015-03-14 21:13:46 -0400
committerAl Viro <viro@zeniv.linux.org.uk>2016-03-28 13:57:51 -0400
commit2da62906b1e298695e1bb725927041cd59942c98 (patch)
treeb76045344084874d066a824f7bd1cdbd2a82d500 /drivers/target
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca (diff)
downloadlinux-2da62906b1e298695e1bb725927041cd59942c98.tar.gz
linux-2da62906b1e298695e1bb725927041cd59942c98.tar.bz2
linux-2da62906b1e298695e1bb725927041cd59942c98.zip
[net] drop 'size' argument of sock_recvmsg()
all callers have it equal to msg_data_left(msg). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/iscsi/iscsi_target_util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/target/iscsi/iscsi_target_util.c b/drivers/target/iscsi/iscsi_target_util.c
index 428b0d9e3dba..57720385a751 100644
--- a/drivers/target/iscsi/iscsi_target_util.c
+++ b/drivers/target/iscsi/iscsi_target_util.c
@@ -1283,9 +1283,8 @@ static int iscsit_do_rx_data(
iov_iter_kvec(&msg.msg_iter, READ | ITER_KVEC,
count->iov, count->iov_count, data);
- while (total_rx < data) {
- rx_loop = sock_recvmsg(conn->sock, &msg,
- (data - total_rx), MSG_WAITALL);
+ while (msg_data_left(&msg)) {
+ rx_loop = sock_recvmsg(conn->sock, &msg, MSG_WAITALL);
if (rx_loop <= 0) {
pr_debug("rx_loop: %d total_rx: %d\n",
rx_loop, total_rx);