Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 173a31fe authored by tsutomu.owa@toshiba.co.jp's avatar tsutomu.owa@toshiba.co.jp Committed by David Teigland
Browse files

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: default avatarTadashi Miyauchi <miyauchi@toshiba-tops.co.jp>
Signed-off-by: default avatarTsutomu Owa <tsutomu.owa@toshiba.co.jp>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 8a4abb08
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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)