OSDN Git Service

dlm: prevent connections during shutdown
authorDavid Teigland <teigland@redhat.com>
Fri, 30 Mar 2012 16:46:08 +0000 (11:46 -0500)
committerDavid Teigland <teigland@redhat.com>
Thu, 26 Apr 2012 20:35:38 +0000 (15:35 -0500)
commit513ef596d43cc35a72ae21170075136855641493
tree89a73567803e4cdc910849af388a934923625345
parentaf3a3ab2966112c0d0a44df7eeb1e95fe32d4495
dlm: prevent connections during shutdown

During lowcomms shutdown, a new connection could possibly
be created, and attempt to use a workqueue that's been
destroyed.  Similarly, during startup, a new connection
could attempt to use a workqueue that's not been set up
yet.  Add a global variable to indicate when new connections
are allowed.

Based on patch by: Christine Caulfield <ccaulfie@redhat.com>

Reported-by: dann frazier <dann.frazier@canonical.com>
Reviewed-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: David Teigland <teigland@redhat.com>
fs/dlm/lowcomms.c