From: Alexander Aring Date: Mon, 1 Mar 2021 22:05:10 +0000 (-0500) Subject: fs: dlm: set connected bit after accept X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b30a624f50d9b637ffe9ef3cf4c53abd5bc607d1;p=linux.git 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 Signed-off-by: David Teigland --- diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c index 440dce99d0d9e..f169e35d19f42 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); /*