dlm: check if workqueues are NULL before flushing/destroying
authorDavid Windsor <dwindsor@redhat.com>
Tue, 2 Apr 2019 12:37:10 +0000 (08:37 -0400)
committerDavid Teigland <teigland@redhat.com>
Thu, 11 Jul 2019 16:01:58 +0000 (11:01 -0500)
commitb355516f450703c9015316e429b66a93dfff0e6f
tree02f2ccd174fb792329cbfc03955f8b9fff4fcd78
parentd1fdb6d8f6a4109a4263176c84b899076a5f8008
dlm: check if workqueues are NULL before flushing/destroying

If the DLM lowcomms stack is shut down before any DLM
traffic can be generated, flush_workqueue() and
destroy_workqueue() can be called on empty send and/or recv
workqueues.

Insert guard conditionals to only call flush_workqueue()
and destroy_workqueue() on workqueues that are not NULL.

Signed-off-by: David Windsor <dwindsor@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c