]> git.baikalelectronics.ru Git - kernel.git/commit
dlm: fix race while closing connections
authorMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Tue, 11 Aug 2015 22:22:21 +0000 (19:22 -0300)
committerDavid Teigland <teigland@redhat.com>
Mon, 17 Aug 2015 21:22:19 +0000 (16:22 -0500)
commit7a8e1bd34a5569efb8226f4f6d0264d2b7922708
tree3ca94f32363177096ae4a861beb1e0d3af98f691
parentf6631ccbc47f2a07b36b7a5fe3e22af9a7a85c6e
dlm: fix race while closing connections

When a connection have issues DLM may need to close it.  Therefore we
should also cancel pending workqueues for such connection at that time,
and not just when dlm is not willing to use this connection anymore.

Also, if we don't clear CF_CONNECT_PENDING flag, the error handling
routines won't be able to re-connect as lowcomms_connect_sock() will
check for it.

Signed-off-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c