提交 173a31fe 编写于 作者: T tsutomu.owa@toshiba.co.jp 提交者: David Teigland

DLM: use CF_CLOSE flag to stop dlm_send correctly

If reconnection fails while executing dlm_lowcomms_stop,
dlm_send will not stop.
Signed-off-by: NTadashi Miyauchi <miyauchi@toshiba-tops.co.jp>
Signed-off-by: NTsutomu Owa <tsutomu.owa@toshiba.co.jp>
Signed-off-by: NDavid Teigland <teigland@redhat.com>
上级 8a4abb08
......@@ -1643,6 +1643,7 @@ static int work_start(void)
static void _stop_conn(struct connection *con, bool and_other)
{
mutex_lock(&con->sock_mutex);
set_bit(CF_CLOSE, &con->flags);
set_bit(CF_READ_PENDING, &con->flags);
set_bit(CF_WRITE_PENDING, &con->flags);
if (con->sock && con->sock->sk)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册