Skip to content

Commit b592e59

Browse files
namjaejeonroxanan1996
authored andcommitted
ksmbd: no need to wait for binded connection termination at logoff
BugLink: https://bugs.launchpad.net/bugs/2052406 [ Upstream commit 67797da ] The connection could be binded to the existing session for Multichannel. session will be destroyed when binded connections are released. So no need to wait for that's connection at logoff. Signed-off-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> Signed-off-by: Portia Stephens <[email protected]> Signed-off-by: Roxana Nicolescu <[email protected]>
1 parent 7533f28 commit b592e59

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

fs/ksmbd/connection.c

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -167,23 +167,7 @@ void ksmbd_all_conn_set_status(u64 sess_id, u32 status)
167167

168168
void ksmbd_conn_wait_idle(struct ksmbd_conn *conn, u64 sess_id)
169169
{
170-
struct ksmbd_conn *bind_conn;
171-
172170
wait_event(conn->req_running_q, atomic_read(&conn->req_running) < 2);
173-
174-
down_read(&conn_list_lock);
175-
list_for_each_entry(bind_conn, &conn_list, conns_list) {
176-
if (bind_conn == conn)
177-
continue;
178-
179-
if ((bind_conn->binding || xa_load(&bind_conn->sessions, sess_id)) &&
180-
!ksmbd_conn_releasing(bind_conn) &&
181-
atomic_read(&bind_conn->req_running)) {
182-
wait_event(bind_conn->req_running_q,
183-
atomic_read(&bind_conn->req_running) == 0);
184-
}
185-
}
186-
up_read(&conn_list_lock);
187171
}
188172

189173
int ksmbd_conn_write(struct ksmbd_work *work)

0 commit comments

Comments
 (0)