mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-17 17:53:56 +08:00
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: Tadashi Miyauchi <miyauchi@toshiba-tops.co.jp> Signed-off-by: Tsutomu Owa <tsutomu.owa@toshiba.co.jp> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
8a4abb0819
commit
173a31fe2b
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user