diff options
author | Namjae Jeon <linkinjeon@kernel.org> | 2023-12-08 14:37:56 +0900 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-12-08 10:11:33 -0600 |
commit | c2a721eead71202a0d8ddd9b56ec8dce652c71d1 (patch) | |
tree | fb170fa8b90d4920aae3a6e1ccd6e45ee4803fbe /fs/smb/server/oplock.h | |
parent | d47d9886aeef79feba7adac701a510d65f3682b5 (diff) |
ksmbd: lazy v2 lease break on smb2_write()
Don't immediately send directory lease break notification on smb2_write().
Instead, It postpones it until smb2_close().
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/smb/server/oplock.h')
-rw-r--r-- | fs/smb/server/oplock.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/smb/server/oplock.h b/fs/smb/server/oplock.h index b64d1536882a..5b93ea9196c0 100644 --- a/fs/smb/server/oplock.h +++ b/fs/smb/server/oplock.h @@ -129,4 +129,5 @@ int find_same_lease_key(struct ksmbd_session *sess, struct ksmbd_inode *ci, void destroy_lease_table(struct ksmbd_conn *conn); void smb_send_parent_lease_break_noti(struct ksmbd_file *fp, struct lease_ctx_info *lctx); +void smb_lazy_parent_lease_break_close(struct ksmbd_file *fp); #endif /* __KSMBD_OPLOCK_H */ |