summaryrefslogtreecommitdiffstats
path: root/fs/cifs/cifssmb.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2008-11-20 13:14:16 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2008-11-20 13:14:16 -0800
commit0cb39aa0ac3a9dc64171b43a85d17e539d82f2d6 (patch)
treec69f6840e55b868e23b3315eb0f09ad245ce67c4 /fs/cifs/cifssmb.c
parentc93fc2873edcd3eae0ed11ba288a77f3ef62e92b (diff)
parentddb4cbfc53aa0913ee8da059fcbf628d14f40f63 (diff)
downloadop-kernel-dev-0cb39aa0ac3a9dc64171b43a85d17e539d82f2d6.zip
op-kernel-dev-0cb39aa0ac3a9dc64171b43a85d17e539d82f2d6.tar.gz
Merge git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/sfrench/cifs-2.6: [CIFS] Do not attempt to close invalidated file handles [CIFS] fix check for dead tcon in smb_init
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r--fs/cifs/cifssmb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c
index bdda46d..2af8626 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 */
OpenPOWER on IntegriCloud