diff options
author | Ronnie Sahlberg <lsahlber@redhat.com> | 2021-03-09 09:07:33 +1000 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2021-04-25 16:28:23 -0500 |
commit | ed20f54a3c63a9f75dbd9e341d7fa8e7bf08dcd8 (patch) | |
tree | cdad660d6f2884f03cd03f1ae205e627878f5f31 /fs/cifs/smb2misc.c | |
parent | 6ef4e9cbe15df691323af007831dab4e70faa1cf (diff) |
cifs: add a timestamp to track when the lease of the cached dir was taken
and clear the timestamp when we receive a lease break.
Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/smb2misc.c')
-rw-r--r-- | fs/cifs/smb2misc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/cifs/smb2misc.c b/fs/cifs/smb2misc.c index aac384f69f74..06d555d4da9a 100644 --- a/fs/cifs/smb2misc.c +++ b/fs/cifs/smb2misc.c @@ -667,6 +667,7 @@ smb2_is_valid_lease_break(char *buffer) !memcmp(rsp->LeaseKey, tcon->crfid.fid->lease_key, SMB2_LEASE_KEY_SIZE)) { + tcon->crfid.time = 0; INIT_WORK(&tcon->crfid.lease_break, smb2_cached_lease_break); queue_work(cifsiod_wq, |