Commit 95edcff4 authored by Jeff Layton's avatar Jeff Layton Committed by Steve French

cifs: attempt to freeze while looping on a receive attempt

In the recent overhaul of the demultiplex thread receive path, I
neglected to ensure that we attempt to freeze on each pass through the
receive loop.
Reported-and-Tested-by: default avatarWoody Suwalski <terraluna977@gmail.com>
Reported-and-Tested-by: default avatarAdam Williamson <awilliam@redhat.com>
Signed-off-by: default avatarJeff Layton <jlayton@redhat.com>
Signed-off-by: default avatarSteve French <smfrench@gmail.com>
parent 59edb63a
...@@ -441,6 +441,8 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig, ...@@ -441,6 +441,8 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig,
smb_msg.msg_controllen = 0; smb_msg.msg_controllen = 0;
for (total_read = 0; to_read; total_read += length, to_read -= length) { for (total_read = 0; to_read; total_read += length, to_read -= length) {
try_to_freeze();
if (server_unresponsive(server)) { if (server_unresponsive(server)) {
total_read = -EAGAIN; total_read = -EAGAIN;
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment