[CIFS] fix check for dead tcon in smb_init

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 <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>

+6 -2
+5 -1
fs/cifs/CHANGES
··· 8 sends, and also let tcp autotune the socket send and receive buffers. 9 This reduces the number of EAGAIN errors returned by TCP/IP in 10 high stress workloads (and the number of retries on socket writes 11 - when sending large SMBWriteX requests). 12 13 Version 1.54 14 ------------
··· 8 sends, and also let tcp autotune the socket send and receive buffers. 9 This reduces the number of EAGAIN errors returned by TCP/IP in 10 high stress workloads (and the number of retries on socket writes 11 + when sending large SMBWriteX requests). Fix case in which a portion of 12 + data can in some cases not get written to the file on the server before the 13 + file is closed. Fix DFS parsing to properly handle path consumed field, 14 + and to handle certain codepage conversions better. Fix mount and 15 + umount race that can cause oops in mount or umount or reconnect. 16 17 Version 1.54 18 ------------
+1 -1
fs/cifs/cifssmb.c
··· 295 check for tcp and smb session status done differently 296 for those three - in the calling routine */ 297 if (tcon) { 298 - if (tcon->need_reconnect) { 299 /* only tree disconnect, open, and write, 300 (and ulogoff which does not have tcon) 301 are allowed as we start force umount */
··· 295 check for tcp and smb session status done differently 296 for those three - in the calling routine */ 297 if (tcon) { 298 + if (tcon->tidStatus == CifsExiting) { 299 /* only tree disconnect, open, and write, 300 (and ulogoff which does not have tcon) 301 are allowed as we start force umount */