]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: add lease tracking to the cached root fid
authorRonnie Sahlberg <lsahlber@redhat.com>
Wed, 13 Jun 2018 20:48:35 +0000 (06:48 +1000)
committerSteve French <stfrench@microsoft.com>
Fri, 15 Jun 2018 07:38:07 +0000 (02:38 -0500)
commit99a0222e57a5d1ca0acddacc1f731f601a2652fe
tree30d488812c67cb68adce979d2b642756e9281a37
parent57c211b33f59e8f3d5afeca7bcc3d238cdbcefb4
cifs: add lease tracking to the cached root fid

Use a read lease for the cached root fid so that we can detect
when the content of the directory changes (via a break) at which time
we close the handle. On next access to the root the handle will be reopened
and cached again.

Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifsproto.h
fs/cifs/cifssmb.c
fs/cifs/misc.c
fs/cifs/smb2misc.c
fs/cifs/smb2ops.c