fs: dlm: synchronize dlm before shutdown
authorAlexander Aring <aahringo@redhat.com>
Thu, 27 Aug 2020 19:02:48 +0000 (15:02 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 27 Aug 2020 20:59:09 +0000 (15:59 -0500)
commitaa7ab1e20882b04fc3e45da77a9dad5cbbefba99
tree1630a2251e200d123131e0eacf6ca8e53a212cbf
parentd012a7190fc1fd72ed48911e77ca97ba4521bccd
fs: dlm: synchronize dlm before shutdown

This patch moves the dlm workqueue dlm synchronization before shutdown
handling. The patch just flushes all pending work before starting to
shutdown the connection. At least for the send_workqeue we should flush
the workqueue to make sure there is no new connection handling going on
as dlm_allow_conn switch is turned to false before.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c