Skip to content

Commit 550a194

Browse files
metze-sambasmfrench
authored andcommitted
smb: client: don't call init_waitqueue_head(&info->conn_wait) twice in _smbd_get_connection
It is already called long before we may hit this cleanup code path. Cc: Steve French <[email protected]> Cc: Tom Talpey <[email protected]> Cc: Long Li <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Stefan Metzmacher <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 7613997 commit 550a194

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fs/smb/client/smbdirect.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,6 @@ static struct smbd_connection *_smbd_get_connection(
17161716
cancel_delayed_work_sync(&info->idle_timer_work);
17171717
destroy_caches_and_workqueue(info);
17181718
sc->status = SMBDIRECT_SOCKET_NEGOTIATE_FAILED;
1719-
init_waitqueue_head(&info->conn_wait);
17201719
rdma_disconnect(sc->rdma.cm_id);
17211720
wait_event(info->conn_wait,
17221721
sc->status == SMBDIRECT_SOCKET_DISCONNECTED);

0 commit comments

Comments
 (0)