Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233166
b: refs/heads/master
c: 195291e
h: refs/heads/master
v: v3
  • Loading branch information
Jeff Layton authored and Steve French committed Feb 10, 2011
1 parent 542d100 commit efe4432
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7e90d705fc9f8c5e3a1549281dce0654d049243b
refs/heads/master: 195291e68c2ad59a046fc56d32bf59635b100e5c
7 changes: 4 additions & 3 deletions trunk/fs/cifs/connect.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,10 +338,11 @@ cifs_echo_request(struct work_struct *work)
struct TCP_Server_Info, echo.work);

/*
* We cannot send an echo until the NEGOTIATE_PROTOCOL request is done.
* Also, no need to ping if we got a response recently
* We cannot send an echo until the NEGOTIATE_PROTOCOL request is
* done, which is indicated by maxBuf != 0. Also, no need to ping if
* we got a response recently
*/
if ((server->tcpStatus != CifsGood) || (server->maxBuf == 0) ||
if (server->maxBuf == 0 ||
time_before(jiffies, server->lstrp + SMB_ECHO_INTERVAL - HZ))
goto requeue_echo;

Expand Down

0 comments on commit efe4432

Please sign in to comment.