]> git.karo-electronics.de Git - karo-tx-linux.git/commit
CIFS: Fix fast lease break after open problem
authorPavel Shilovsky <pshilovsky@etersoft.ru>
Fri, 31 Aug 2012 16:17:03 +0000 (20:17 +0400)
committerSteve French <sfrench@us.ibm.com>
Sat, 15 Sep 2012 18:05:35 +0000 (13:05 -0500)
commited15cedde51f5c05133e94f3540c485e438577b1
tree7e96152fec7c9cbd62bcbd3ab792e1336bb3cfc3
parente0532ae3649c4432ecb02f4c2da088993ae613ea
CIFS: Fix fast lease break after open problem

Now we walk though cifsFileInfo's list for every incoming lease
break and look for an equivalent there. That approach misses lease
breaks that come just after an open response - we don't have time
to populate new cifsFileInfo structure to the list. Fix this by
adding new list of pending opens and look for a lease there if we
didn't find it in the list of cifsFileInfo structures.

Signed-off-by: Pavel Shilovsky <pshilovsky@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/connect.c
fs/cifs/dir.c
fs/cifs/file.c
fs/cifs/misc.c
fs/cifs/smb2misc.c