diff options
author | Hyunchul Lee <hyc.lee@gmail.com> | 2021-06-25 04:53:26 +0200 |
---|---|---|
committer | Namjae Jeon <namjae.jeon@samsung.com> | 2021-06-29 08:05:54 +0200 |
commit | d8fb29980cb5369c4ea520c0b4e1a8893e88f14c (patch) | |
tree | 27f48999e33d1b20a9b9ac05791f52d47cf44c1c /fs/ksmbd/mgmt | |
parent | ksmbd: remove getting worker state macros (diff) | |
download | linux-d8fb29980cb5369c4ea520c0b4e1a8893e88f14c.tar.xz linux-d8fb29980cb5369c4ea520c0b4e1a8893e88f14c.zip |
ksmbd: remove and replace macros with inline functions in smb_common.h
Remove and replace macros with inline functions
in smb_common.h
Reviewed-by: Christoph Hellwig <hch@lst.de>
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>
Diffstat (limited to 'fs/ksmbd/mgmt')
-rw-r--r-- | fs/ksmbd/mgmt/user_session.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/fs/ksmbd/mgmt/user_session.c b/fs/ksmbd/mgmt/user_session.c index c5ba9694e1f1..8d8ffd8c6f19 100644 --- a/fs/ksmbd/mgmt/user_session.c +++ b/fs/ksmbd/mgmt/user_session.c @@ -154,11 +154,9 @@ void ksmbd_session_destroy(struct ksmbd_session *sess) list_del(&sess->sessions_entry); - if (IS_SMB2(sess->conn)) { - down_write(&sessions_table_lock); - hash_del(&sess->hlist); - up_write(&sessions_table_lock); - } + down_write(&sessions_table_lock); + hash_del(&sess->hlist); + up_write(&sessions_table_lock); if (sess->user) ksmbd_free_user(sess->user); |