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 <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 7613997 commit 550a194

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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)