1. 27 6月, 2008 2 次提交
    • 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
  2. 31 3月, 2008 1 次提交
    • B
      [GFS2] Invalidate cache at correct point · 58e9fee1
      Benjamin Marzinski 提交于
      GFS2 wasn't invalidating its cache before it called into the lock manager
      with a request that could potentially drop a lock.  This was leaving a
      window where the lock could be actually be held by another node, but the
      file's page cache would still appear valid, causing coherency problems.
      This patch moves the cache invalidation to before the lock manager call
      when dropping a lock. It also adds the option to the lock_dlm lock
      manager to not use conversion mode deadlock avoidance, which, on a
      conversion from shared to exclusive, could internally drop the lock, and
      then reacquire in. GFS2 now asks lock_dlm to not do this.  Instead, GFS2
      manually drops the lock and reacquires it.
      Signed-off-by: NBenjamin Marzinski <bmarzins@redhat.com>
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      58e9fee1
  3. 25 1月, 2008 1 次提交
  4. 10 10月, 2007 1 次提交
    • B
      [GFS2] GFS2: chmod hung - fix race in thread creation · 55c0c4ac
      Bob Peterson 提交于
      The problem boiled down to a race between the gdlm_init_threads()
      function initializing thread1 and its setting of blist = 1.
      Essentially, "if (current == ls->thread1)" was checked by the thread
      before the thread creator set ls->thread1.
      
      Since thread1 is the only thread who is allowed to work on the
      blocking queue, and since neither thread thought it was thread1, no one
      was working on the queue.  So everything just sat.
      
      This patch reuses the ls->async_lock spin_lock to fix the race,
      and it fixes the problem.  I've done more than 2000 iterations of the
      loop that was recreating the failure and it seems to work.
      Signed-off-by: NBob Peterson <rpeterso@redhat.com>
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      
      --
      55c0c4ac
  5. 09 7月, 2007 1 次提交
  6. 25 9月, 2006 1 次提交
  7. 08 9月, 2006 1 次提交
    • S
      [GFS2] Remove one typedef · 1c089c32
      Steven Whitehouse 提交于
      This removes one of the typedefs from the locking interface. It
      is replaced by a forward declaration of the gfs2 superblock. The
      other two are not so easy to solve since in their case, they
      can refer to one of two possible structures.
      
      Cc: David Teigland <teigland@redhat.com>
      Cc: Jan Engelhardt <jengelh@linux01.gwdg.de>
      Signed-off-by: NSteven Whitehouse <swhiteho@redhat.com>
      1c089c32
  8. 05 9月, 2006 2 次提交
  9. 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
  10. 20 6月, 2006 1 次提交
    • D
      [GFS2] Fix printk format warnings in DLM code · 0239c4ae
      David Woodhouse 提交于
      fs/gfs2/locking/dlm/thread.c: In function ‘process_complete’:
      fs/gfs2/locking/dlm/thread.c:56: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
      fs/gfs2/locking/dlm/thread.c:69: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
      fs/gfs2/locking/dlm/thread.c:102: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’
      fs/gfs2/locking/dlm/thread.c:124: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
      fs/gfs2/locking/dlm/thread.c:146: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
      fs/gfs2/locking/dlm/thread.c:148: warning: format ‘%llx’ expects type ‘long long unsigned int’, but argument 4 has type ‘uint64_t’
      Signed-off-by: NDavid Woodhouse <dwmw2@infradead.org>
      0239c4ae
  11. 23 2月, 2006 1 次提交
  12. 17 1月, 2006 2 次提交