Skip to content

Commit

Permalink
cifs: attempt to freeze while looping on a receive attempt
Browse files Browse the repository at this point in the history
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: Woody Suwalski <terraluna977@gmail.com>
Reported-and-Tested-by: Adam Williamson <awilliam@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
  • Loading branch information
Jeff Layton authored and Steve French committed Dec 9, 2011
1 parent 59edb63 commit 95edcff
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,8 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig,
smb_msg.msg_controllen = 0;

for (total_read = 0; to_read; total_read += length, to_read -= length) {
try_to_freeze();

if (server_unresponsive(server)) {
total_read = -EAGAIN;
break;
Expand Down

0 comments on commit 95edcff

Please sign in to comment.