ksmbd: free ksmbd_lock when file is closed
authorHyunchul Lee <hyc.lee@gmail.com>
Sat, 10 Jul 2021 07:22:41 +0000 (16:22 +0900)
committerNamjae Jeon <namjae.jeon@samsung.com>
Sat, 10 Jul 2021 07:23:50 +0000 (16:23 +0900)
commitd63528eb0d43c4796c42aad56889dec12cf4e122
treefc8f922b3ac71f30c0778d54a0e6bf0ee020b168
parent4b92841ef27b56883fa4491a3d51db3eef68c481
ksmbd: free ksmbd_lock when file is closed

Append ksmbd_lock into the connection's
lock list and the ksmbd_file's lock list.
And when a file is closed, detach ksmbd_lock
from these lists and free it.

Signed-off-by: Hyunchul Lee <hyc.lee@gmail.com>
Signed-off-by: Namjae Jeon <namjae.jeon@samsung.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/connection.c
fs/ksmbd/connection.h
fs/ksmbd/smb2pdu.c
fs/ksmbd/smb_common.c
fs/ksmbd/smb_common.h
fs/ksmbd/vfs_cache.c
fs/ksmbd/vfs_cache.h