Skip to content

Commit 95edcff

Browse files
jtlaytonsmfrench
authored andcommitted
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: Woody Suwalski <[email protected]> Reported-and-Tested-by: Adam Williamson <[email protected]> Signed-off-by: Jeff Layton <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 59edb63 commit 95edcff

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/cifs/connect.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,8 @@ cifs_readv_from_socket(struct TCP_Server_Info *server, struct kvec *iov_orig,
441441
smb_msg.msg_controllen = 0;
442442

443443
for (total_read = 0; to_read; total_read += length, to_read -= length) {
444+
try_to_freeze();
445+
444446
if (server_unresponsive(server)) {
445447
total_read = -EAGAIN;
446448
break;

0 commit comments

Comments
 (0)