1. 24 12月, 2008 10 次提交
  2. 26 11月, 2008 1 次提交
  3. 14 11月, 2008 1 次提交
    • D
      dlm: fix shutdown cleanup · 278afcbf
      David Teigland 提交于
      Fixes a regression from commit 0f8e0d9a,
      "dlm: allow multiple lockspace creates".
      
      An extraneous 'else' slipped into a code fragment being moved from
      release_lockspace() to dlm_release_lockspace().  The result of the
      unwanted 'else' is that dlm threads and structures are not stopped
      and cleaned up when the final dlm lockspace is removed.  Trying to
      create a new lockspace again afterward will fail with
      "kmem_cache_create: duplicate cache dlm_conn" because the cache
      was not previously destroyed.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      278afcbf
  4. 05 9月, 2008 2 次提交
    • A
      dlm: choose better identifiers · 27eccf46
      Andrew Morton 提交于
      sparc32:
      
      fs/dlm/config.c:397: error: expected identifier or '(' before '{' token
      fs/dlm/config.c: In function 'drop_node':
      fs/dlm/config.c:589: warning: initialization from incompatible pointer type
      fs/dlm/config.c:589: warning: initialization from incompatible pointer type
      fs/dlm/config.c: In function 'release_node':
      fs/dlm/config.c:601: warning: initialization from incompatible pointer type
      fs/dlm/config.c:601: warning: initialization from incompatible pointer type
      fs/dlm/config.c: In function 'show_node':
      fs/dlm/config.c:717: warning: initialization from incompatible pointer type
      fs/dlm/config.c:717: warning: initialization from incompatible pointer type
      fs/dlm/config.c: In function 'store_node':
      fs/dlm/config.c:726: warning: initialization from incompatible pointer type
      fs/dlm/config.c:726: warning: initialization from incompatible pointer type
      
      Cc: Christine Caulfield <ccaulfie@redhat.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      27eccf46
    • D
      dlm: remove bkl · f9f2ed48
      David Teigland 提交于
      BLK from recent pushdown is not needed.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      f9f2ed48
  5. 03 9月, 2008 1 次提交
  6. 29 8月, 2008 3 次提交
    • D
      dlm: fix locking of lockspace list in dlm_scand · c1dcf65f
      David Teigland 提交于
      The dlm_scand thread needs to lock the list of lockspaces
      when going through it.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      c1dcf65f
    • 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
  7. 14 8月, 2008 2 次提交
  8. 26 7月, 2008 1 次提交
    • M
      locks: add special return value for asynchronous locks · bde74e4b
      Miklos Szeredi 提交于
      Use a special error value FILE_LOCK_DEFERRED to mean that a locking
      operation returned asynchronously.  This is returned by
      
        posix_lock_file() for sleeping locks to mean that the lock has been
        queued on the block list, and will be woken up when it might become
        available and needs to be retried (either fl_lmops->fl_notify() is
        called or fl_wait is woken up).
      
        f_op->lock() to mean either the above, or that the filesystem will
        call back with fl_lmops->fl_grant() when the result of the locking
        operation is known.  The filesystem can do this for sleeping as well
        as non-sleeping locks.
      
      This is to make sure, that return values of -EAGAIN and -EINPROGRESS by
      filesystems are not mistaken to mean an asynchronous locking.
      
      This also makes error handling in fs/locks.c and lockd/svclock.c slightly
      cleaner.
      Signed-off-by: NMiklos Szeredi <mszeredi@suse.cz>
      Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
      Cc: "J. Bruce Fields" <bfields@fieldses.org>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: David Teigland <teigland@redhat.com>
      Cc: Christoph Hellwig <hch@lst.de>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      bde74e4b
  9. 18 7月, 2008 2 次提交
  10. 15 7月, 2008 5 次提交
  11. 21 6月, 2008 1 次提交
  12. 20 5月, 2008 4 次提交
  13. 30 4月, 2008 1 次提交
  14. 22 4月, 2008 6 次提交