1. 24 12月, 2008 1 次提交
    • D
      dlm: improve how bast mode handling · fd22a51b
      David Teigland 提交于
      The lkb bastmode value is set in the context of processing the
      lock, and read by the dlm_astd thread.  Because it's accessed
      in these two separate contexts, the writing/reading ought to
      be done under a lock.  This is simple to do by setting it and
      reading it when the lkb is added to and removed from dlm_astd's
      callback list which is properly locked.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      fd22a51b
  2. 29 8月, 2008 2 次提交
    • D
      dlm: detect available userspace daemon · dc68c7ed
      David Teigland 提交于
      If dlm_controld (the userspace daemon that controls the setup and
      recovery of the dlm) fails, the kernel should shut down the lockspaces
      in the kernel rather than leaving them running.  This is detected by
      having dlm_controld hold a misc device open while running, and if
      the kernel detects a close while the daemon is still needed, it stops
      the lockspaces in the kernel.
      
      Knowing that the userspace daemon isn't running also allows the
      lockspace create/remove routines to avoid waiting on the daemon
      for join/leave operations.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      dc68c7ed
    • D
      dlm: allow multiple lockspace creates · 0f8e0d9a
      David Teigland 提交于
      Add a count for lockspace create and release so that create can
      be called multiple times to use the lockspace from different places.
      Also add the new flag DLM_LSFL_NEWEXCL to create a lockspace with
      the previous behavior of returning -EEXIST if the lockspace already
      exists.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      0f8e0d9a
  3. 13 7月, 2006 1 次提交