From: Steve French Date: Mon, 24 Nov 2008 05:01:05 +0000 (+0530) Subject: cifs: fix check for dead tcon in smb_init X-Git-Tag: v2.6.27.8~26 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8feb19be63ca19a87697c2d6ee8db6d541f46be8;p=karo-tx-linux.git cifs: fix check for dead tcon in smb_init commit bfb59820ee46616a7bdb4af6b8f7e109646de6ec upstream This was recently changed to check for need_reconnect, but should actually be a check for a tidStatus of CifsExiting. Signed-off-by: Jeff Layton Signed-off-by: Steve French Cc: Suresh Jayaraman Signed-off-by: Greg Kroah-Hartman --- diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 3eb9b8181d17..8f0f86df31f1 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -295,7 +295,7 @@ smb_init(int smb_command, int wct, struct cifsTconInfo *tcon, check for tcp and smb session status done differently for those three - in the calling routine */ if (tcon) { - if (tcon->need_reconnect) { + if (tcon->tidStatus == CifsExiting) { /* only tree disconnect, open, and write, (and ulogoff which does not have tcon) are allowed as we start force umount */