diff options
| -rw-r--r-- | fs/cifs/connect.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 10011e99b34d..161f24ca4f6e 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
| @@ -338,10 +338,11 @@ cifs_echo_request(struct work_struct *work) | |||
| 338 | struct TCP_Server_Info, echo.work); | 338 | struct TCP_Server_Info, echo.work); |
| 339 | 339 | ||
| 340 | /* | 340 | /* |
| 341 | * We cannot send an echo until the NEGOTIATE_PROTOCOL request is done. | 341 | * We cannot send an echo until the NEGOTIATE_PROTOCOL request is |
| 342 | * Also, no need to ping if we got a response recently | 342 | * done, which is indicated by maxBuf != 0. Also, no need to ping if |
| 343 | * we got a response recently | ||
| 343 | */ | 344 | */ |
| 344 | if ((server->tcpStatus != CifsGood) || (server->maxBuf == 0) || | 345 | if (server->maxBuf == 0 || |
| 345 | time_before(jiffies, server->lstrp + SMB_ECHO_INTERVAL - HZ)) | 346 | time_before(jiffies, server->lstrp + SMB_ECHO_INTERVAL - HZ)) |
| 346 | goto requeue_echo; | 347 | goto requeue_echo; |
| 347 | 348 | ||
