X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=fs%2Fcifs%2Fconnect.c;h=8cd4b52d42174ee0a4d524d3176b59102751c61e;hb=ab347d94d6515ea9a5be04faccd9b14a319b0a7a;hp=c0458c543f170f1ebca913f17c1116f0fd77620d;hpb=1583171492eb514e267c7b51e96846b38de0f544;p=pandora-kernel.git diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index c0458c543f17..8cd4b52d4217 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -37,6 +37,7 @@ #include #include #include +#include #include #include "cifspdu.h" #include "cifsglob.h" @@ -440,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;