]> err.no Git - linux-2.6/blobdiff - fs/cifs/transport.c
[PATCH] pipe: remove redundant fifo_poll abstraction
[linux-2.6] / fs / cifs / transport.c
index 79bf686a2a190875dcb37a239811659c2e2c95df..0046c219833d6cfbef77e85addc663e1be71e290 100644 (file)
@@ -270,6 +270,9 @@ CIFSSendRcv(const unsigned int xid, struct cifsSesInfo *ses,
 
   
 
+       if(ses->server->tcpStatus == CIFS_EXITING)
+               return -ENOENT;
+
        /* Ensure that we do not send more than 50 overlapping requests 
           to the same server. We may make this configurable later or
           use ses->maxReq */
@@ -401,6 +404,9 @@ SendReceive(const unsigned int xid, struct cifsSesInfo *ses,
                return -EIO;
        }
 
+       if(ses->server->tcpStatus == CifsExiting)
+               return -ENOENT;
+
        /* Ensure that we do not send more than 50 overlapping requests 
           to the same server. We may make this configurable later or
           use ses->maxReq */