1. 29 8月, 2008 1 次提交
    • 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
  2. 27 6月, 2008 4 次提交
    • S
      [GFS2] Fix module building · f17172e0
      Steven Whitehouse 提交于
      Two lines missed from the previous patch.
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      f17172e0
    • S
      [GFS2] Remove all_list from lock_dlm · 31fcba00
      Steven Whitehouse 提交于
      I discovered that we had a list onto which every lock_dlm
      lock was being put. Its only function was to discover whether
      we'd got any locks left after umount. Since there was already
      a counter for that purpose as well, I removed the list. The
      saving is sizeof(struct list_head) per glock - well worth
      having.
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      31fcba00
    • S
      [GFS2] Remove remote lock dropping code · 1bdad606
      Steven Whitehouse 提交于
      There are several reasons why this is undesirable:
      
       1. It never happens during normal operation anyway
       2. If it does happen it causes performance to be very, very poor
       3. It isn't likely to solve the original problem (memory shortage
          on remote DLM node) it was supposed to solve
       4. It uses a bunch of arbitrary constants which are unlikely to be
          correct for any particular situation and for which the tuning seems
          to be a black art.
       5. In an N node cluster, only 1/N of the dropped locked will actually
          contribute to solving the problem on average.
      
      So all in all we are better off without it. This also makes merging
      the lock_dlm module into GFS2 a bit easier.
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      1bdad606
    • S
      [GFS2] Fix ordering bug in lock_dlm · f3c9d38a
      Steven Whitehouse 提交于
      This looks like a lot of change, but in fact its not. Mostly its
      things moving from one file to another. The change is just that
      instead of queuing lock completions and callbacks from the DLM
      we now pass them directly to GFS2.
      
      This gives us a net loss of two list heads per glock (a fair
      saving in memory) plus a reduction in the latency of delivering
      the messages to GFS2, plus we now have one thread fewer as well.
      There was a bug where callbacks and completions could be delivered
      in the wrong order due to this unnecessary queuing which is fixed
      by this patch.
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      Cc: Bob Peterson <rpeterso@redhat.com>
      f3c9d38a
  3. 22 4月, 2008 1 次提交
  4. 25 1月, 2008 2 次提交
    • D
      [GFS2] tidy up error message · 00c13475
      David Teigland 提交于
      Print error with log_error() to be consistent with others.
      Signed-off-by: NDavid Teigland <teigland@redhat.com>
      Signed-off-by: NFabio M. Di Nitto <fabbione@ubuntu.com>
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      00c13475
    • F
      [GFS2] Check for installation of mount helpers for DLM mounts · 0b7580c7
      Fabio Massimo Di Nitto 提交于
      The patch is a fix to abort mount if the mount.gfs* and possible
      umount.* are missing from /sbin.
      
      While we do what we can to guarantee that they are installed properly in
      userland (CVS HEAD), we want to make sure that mount still aborts properly.
      
      The only sign of missing helpers is that lock_dlm will receive no mount options
      at all. According to David the problem does not exist for lock_nolock as the
      helpers are not required.
      
      The patch has been tested for both gfs and gfs2 and it works as expected. The
      lack of mount.gfs* will generate an error that is propagated to mount:
      
      oot@node1:~# mount -t  gfs2 /dev/nbd2 /mnt/
      mount: wrong fs type, bad option, bad superblock on /dev/nbd2,
             missing codepage or helper program, or other error
             In some cases useful info is found in syslog - try
             dmesg | tail  or so
      
      [ 3513.303346] GFS2: fsid=: Trying to join cluster "lock_dlm", "gutsy:gfs2"
      [ 3513.304546] DLM/GFS2/GFS ERROR: (u)mount helpers are not installed properly!
      [ 3513.306290] GFS2: fsid=: can't mount proto=lock_dlm, table=gutsy:gfs2, hostdata=
      
      You might want to notice that it will also avoid mount to hang or fail silently
      or with strange errors that will require the cluster to reboot/restart before
      you can actually mount the filesystem again.
      Signed-off-by: NFabio M. Di Nitto <fabbione@ubuntu.com>
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      0b7580c7
  5. 09 7月, 2007 1 次提交
  6. 06 2月, 2007 1 次提交
  7. 12 10月, 2006 1 次提交
  8. 08 9月, 2006 3 次提交
  9. 05 9月, 2006 1 次提交
  10. 01 9月, 2006 1 次提交
    • S
      [GFS2] Update copyright, tidy up incore.h · e9fc2aa0
      Steven Whitehouse 提交于
      As per comments from Jan Engelhardt <jengelh@linux01.gwdg.de> this
      updates the copyright message to say "version" in full rather than
      "v.2". Also incore.h has been updated to remove forward structure
      declarations which are not required.
      
      The gfs2_quota_lvb structure has now had endianess annotations added
      to it. Also quota.c has been updated so that we now store the
      lvb data locally in endian independant format to avoid needing
      a structure in host endianess too. As a result the endianess
      conversions are done as required at various points and thus the
      conversion routines in lvb.[ch] are no longer required. I've
      moved the one remaining constant in lvb.h thats used into lm.h
      and removed the unused lvb.[ch].
      
      I have not changed the HIF_ constants. That is left to a later patch
      which I hope will unify the gh_flags and gh_iflags fields of the
      struct gfs2_holder.
      
      Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      e9fc2aa0
  11. 19 5月, 2006 1 次提交
  12. 27 4月, 2006 1 次提交
  13. 29 3月, 2006 1 次提交
  14. 18 1月, 2006 1 次提交
  15. 17 1月, 2006 2 次提交