]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[CIFS] Do not attempt to close invalidated file handles
authorSteve French <sfrench@us.ibm.com>
Thu, 20 Nov 2008 20:00:44 +0000 (20:00 +0000)
committerSteve French <sfrench@us.ibm.com>
Thu, 20 Nov 2008 20:14:13 +0000 (20:14 +0000)
commitddb4cbfc53aa0913ee8da059fcbf628d14f40f63
treed77a2d510fa3a3b6556052af024355ed5cfc43d8
parentbfb59820ee46616a7bdb4af6b8f7e109646de6ec
[CIFS] Do not attempt to close invalidated file handles

If a connection with open file handles has gone down
and come back up and reconnected without reopening
the file handle yet, do not attempt to send an SMB close
request for this handle in cifs_close.  We were
checking for the connection being invalid in cifs_close
but since the connection may have been reconnected
we also need to check whether the file handle
was marked invalid (otherwise we could close the
wrong file handle by accident).

Acked-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/file.c
fs/cifs/misc.c
fs/cifs/readdir.c