OSDN Git Service

ksmbd: add smb-direct shutdown
authorYufan Chen <wiz.chen@gmail.com>
Sun, 9 Jan 2022 02:34:16 +0000 (11:34 +0900)
committerSteve French <stfrench@microsoft.com>
Mon, 10 Jan 2022 18:44:19 +0000 (12:44 -0600)
commit136dff3a6b71dc16c30b35cc390feb0bfc32ed50
treee7bfce4dd3e83ee220ebf7bb4abc1e00498cae4b
parent4d02c4fdc0e256b493f9a3b604c7ff18f0019f17
ksmbd: add smb-direct shutdown

When killing ksmbd server after connecting rdma, ksmbd threads does not
terminate properly because the rdma connection is still alive.
This patch add shutdown operation to disconnect rdma connection while
ksmbd threads terminate.

Signed-off-by: Yufan Chen <wiz.chen@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/ksmbd/connection.c
fs/ksmbd/connection.h
fs/ksmbd/transport_rdma.c