Commit 7336402f authored by Steve French's avatar Steve French

exit from waiting on smb response when session dead

parent 54aaf1b9
......@@ -2684,11 +2684,11 @@ int cifs_setup_session(unsigned int xid, struct cifsSesInfo *pSesInfo,
if(rc == 0)
pSesInfo->server->tcpStatus = CifsGood;
}
if (!rc) {
pSesInfo->capabilities = pSesInfo->server->capabilities;
if(linuxExtEnabled == 0)
pSesInfo->capabilities &= (~CAP_UNIX);
pSesInfo->sequence_number = 0;
if (!rc) {
cFYI(1,("Security Mode: 0x%x Capabilities: 0x%x Time Zone: %d",
pSesInfo->server->secMode,
pSesInfo->server->capabilities,
......
......@@ -235,8 +235,8 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
due to last connection to this server being unmounted */
timeout = wait_event_interruptible_timeout(ses->server->response_q,
midQ->
midState & MID_RESPONSE_RECEIVED,
(midQ->midState & MID_RESPONSE_RECEIVED) ||
(ses->server->tcpStatus != CifsGood),
timeout);
if (signal_pending(current)) {
cFYI(1, ("CIFS: caught signal"));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment