diff options
author | Steve French <sfrench@us.ibm.com> | 2008-11-13 19:45:32 +0000 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2008-11-13 19:45:32 +0000 |
commit | 3b7952109361c684caf0c50474da8662ecc81019 (patch) | |
tree | 402062ed63236ef245d8d65010d8f06520df8453 /fs/cifs/cifsfs.c | |
parent | c527c8a7ffa18400c2c1488f7ab5aff5e83f3c8e (diff) | |
download | linux-3b7952109361c684caf0c50474da8662ecc81019.tar.gz linux-3b7952109361c684caf0c50474da8662ecc81019.tar.bz2 linux-3b7952109361c684caf0c50474da8662ecc81019.zip |
[CIFS] Fix cifs reconnection flags
In preparation for Jeff's big umount/mount fixes to remove the possibility of
various races in cifs mount and linked list handling of sessions, sockets and
tree connections, this patch cleans up some repetitive code in cifs_mount,
and addresses a problem with ses->status and tcon->tidStatus in which we
were overloading the "need_reconnect" state with other status in that
field. So the "need_reconnect" flag has been broken out from those
two state fields (need reconnect was not mutually exclusive from some of the
other possible tid and ses states). In addition, a few exit cases in
cifs_mount were cleaned up, and a problem with a tcon flag (for lease support)
was not being set consistently for the 2nd mount of the same share
CC: Jeff Layton <jlayton@redhat.com>
CC: Shirish Pargaonkar <shirishp@us.ibm.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsfs.c')
-rw-r--r-- | fs/cifs/cifsfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index ac5915d61dca..903bbd6449d1 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c @@ -1013,7 +1013,7 @@ static int cifs_oplock_thread(void *dummyarg) not bother sending an oplock release if session to server still is disconnected since oplock already released by the server in that case */ - if (pTcon->tidStatus != CifsNeedReconnect) { + if (!pTcon->need_reconnect) { rc = CIFSSMBLock(0, pTcon, netfid, 0 /* len */ , 0 /* offset */, 0, 0, LOCKING_ANDX_OPLOCK_RELEASE, |