summaryrefslogtreecommitdiffstats
path: root/fs/dlm/lowcomms.c
diff options
context:
space:
mode:
authorAlexander Aring <aahringo@redhat.com>2021-03-01 23:05:10 +0100
committerDavid Teigland <teigland@redhat.com>2021-03-09 15:56:42 +0100
commitb30a624f50d9b637ffe9ef3cf4c53abd5bc607d1 (patch)
tree986c12c8176878c0b608d8d3df3d4c3e08ca72b4 /fs/dlm/lowcomms.c
parentfs: dlm: fix mark setting deadlock (diff)
downloadlinux-b30a624f50d9b637ffe9ef3cf4c53abd5bc607d1.tar.xz
linux-b30a624f50d9b637ffe9ef3cf4c53abd5bc607d1.zip
fs: dlm: set connected bit after accept
This patch sets the CF_CONNECTED bit when dlm accepts a connection from another node. If we don't set this bit, next time if the connection socket gets writable it will assume an event that the connection is successfully connected. However that is only the case when the connection did a connect. Signed-off-by: Alexander Aring <aahringo@redhat.com> Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to '')
-rw-r--r--fs/dlm/lowcomms.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c
index 440dce99d0d9..f169e35d19f4 100644
--- a/fs/dlm/lowcomms.c
+++ b/fs/dlm/lowcomms.c
@@ -953,6 +953,7 @@ static int accept_from_sock(struct listen_connection *con)
addcon = newcon;
}
+ set_bit(CF_CONNECTED, &addcon->flags);
mutex_unlock(&newcon->sock_mutex);
/*