aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
Diffstat (limited to 'fs')
-rw-r--r--fs/cifs/transport.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index cd4ed65d6cd9..4d076be46d90 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -410,11 +410,8 @@ static int wait_for_response(struct cifsSesInfo *ses,
410 410
411 for (;;) { 411 for (;;) {
412 curr_timeout = timeout + jiffies; 412 curr_timeout = timeout + jiffies;
413 wait_event(ses->server->response_q, 413 wait_event_timeout(ses->server->response_q,
414 (!(midQ->midState == MID_REQUEST_SUBMITTED)) || 414 midQ->midState != MID_REQUEST_SUBMITTED, timeout);
415 time_after(jiffies, curr_timeout) ||
416 ((ses->server->tcpStatus != CifsGood) &&
417 (ses->server->tcpStatus != CifsNew)));
418 415
419 if (time_after(jiffies, curr_timeout) && 416 if (time_after(jiffies, curr_timeout) &&
420 (midQ->midState == MID_REQUEST_SUBMITTED) && 417 (midQ->midState == MID_REQUEST_SUBMITTED) &&