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)
commita93864d93977b99bda6c348a09b90a3d7ef8db3a
tree30d488812c67cb68adce979d2b642756e9281a37
parent2fbb56446fde14a80790de9b182ae6f7c36a039a
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