提交 b30a624f 编写于 作者: A Alexander Aring 提交者: David Teigland

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: NAlexander Aring <aahringo@redhat.com>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
上级 e125fbeb
...@@ -953,6 +953,7 @@ static int accept_from_sock(struct listen_connection *con) ...@@ -953,6 +953,7 @@ static int accept_from_sock(struct listen_connection *con)
addcon = newcon; addcon = newcon;
} }
set_bit(CF_CONNECTED, &addcon->flags);
mutex_unlock(&newcon->sock_mutex); mutex_unlock(&newcon->sock_mutex);
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册