]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
dlm: do synchronized socket connect call
authorAlexander Aring <aahringo@redhat.com>
Fri, 2 Aug 2024 17:26:47 +0000 (13:26 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 8 Aug 2024 20:15:08 +0000 (15:15 -0500)
commitfb1911ef6f4899eaba082bb81f301987e2e3bb86
tree07fcf3dfa9779cf0895712fb42fe3114841d15dc
parentc846f732b97aa30ab91c03b0337cc0c8e27b24df
dlm: do synchronized socket connect call

To avoid -EINPROGRESS cases on connect that just ends in a retry we just
call connect in a synchronized way to wait until its done. Since commit
dbb751ffab0b ("fs: dlm: parallelize lowcomms socket handling") we have a
non ordered workqueue running for serving the DLM sockets that allows us
to call send/recv for each DLM socket connection in parallel. Before
each worker needed to wait until the previous worker was done and
probably the reason why connect() was called in an asynchronous way to
not block other workers. This is however not necessary anymore as other
socket handling workers don't need to wait.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c