mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-02-16 16:34:44 -05:00
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>
This commit is contained in:
committed by
Steve French
parent
7613997457
commit
550a194c59
@@ -1716,7 +1716,6 @@ static struct smbd_connection *_smbd_get_connection(
|
||||
cancel_delayed_work_sync(&info->idle_timer_work);
|
||||
destroy_caches_and_workqueue(info);
|
||||
sc->status = SMBDIRECT_SOCKET_NEGOTIATE_FAILED;
|
||||
init_waitqueue_head(&info->conn_wait);
|
||||
rdma_disconnect(sc->rdma.cm_id);
|
||||
wait_event(info->conn_wait,
|
||||
sc->status == SMBDIRECT_SOCKET_DISCONNECTED);
|
||||
|
||||
Reference in New Issue
Block a user