1. 10 10月, 2010 1 次提交
  2. 07 10月, 2010 4 次提交
    • S
      · 43695d09
      Sunil Mushran 提交于
      ocfs2/cluster: Show per region heartbeat elapsed time
      
      This patch adds a per region debugfs file that shows the elapsed time
      since the time the o2hb timer was last armed.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      43695d09
    • S
      · d6aa1c7c
      Sunil Mushran 提交于
      ocfs2/cluster: Add mlogs for heartbeat up/down events
      
      This patch adds mlogs for o2hb up and down events.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      d6aa1c7c
    • S
      · 1f285305
      Sunil Mushran 提交于
      ocfs2/cluster: Create debugfs dir/files for each region
      
      This patch creates debugfs directory for each o2hb region and creates
      files to expose the region number and the per region live node bitmap.
      This information will be useful in debugging cluster issues.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      1f285305
    • S
      · a6de0136
      Sunil Mushran 提交于
      ocfs2/cluster: Create debugfs files for live, quorum and failed region bitmaps
      
      This patch prints the bitmaps of live, quorum and failed regions. This
      information will be useful in debugging cluster issues.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      a6de0136
  3. 08 10月, 2010 1 次提交
    • S
      · b1c5ebfb
      Sunil Mushran 提交于
      ocfs2/cluster: Maintain bitmap of failed regions
      
      In global heartbeat mode, we track the bitmap of regions that have seen
      heartbeat timeouts. We fence if the number of such regions is greater than
      or equal to half the number of quorum regions.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      b1c5ebfb
  4. 07 10月, 2010 2 次提交
    • S
      · 43182d2a
      Sunil Mushran 提交于
      ocfs2/cluster: Maintain bitmap of quorum regions
      
      o2hb allows online adding of regions. However, a newly added region is not
      used in quorum calculations unless it has been added on all nodes. This patch
      tracks a bitmap of such quorum regions.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      43182d2a
    • S
      · e7d656ba
      Sunil Mushran 提交于
      ocfs2/cluster: Track bitmap of live heartbeat regions
      
      A heartbeat region becomes live (or active) after a fixed number of (steady)
      iterations.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      e7d656ba
  5. 08 10月, 2010 1 次提交
    • S
      · 536f0741
      Sunil Mushran 提交于
      ocfs2/cluster: Track number of global heartbeat regions
      
      In global heartbeat mode, we have a upper limit for the number of active regions.
      This patch adds the facility to track the number of active global heartbeat
      regions and fails to start heartbeat if the number exceeds the maximum.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      536f0741
  6. 07 10月, 2010 1 次提交
    • S
      · 823a637a
      Sunil Mushran 提交于
      ocfs2/cluster: Maintain live node bitmap per heartbeat region
      
      Currently we track a global livenode bitmap that keeps track of all nodes
      that are heartbeating in all regions.
      
      This patch adds the ability to track the livenode bitmap on a per region basis.
      We will use this facility in a later patch to allow us to withstand the loss of
      a minority number of regions.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      823a637a
  7. 08 10月, 2010 2 次提交
    • S
      · 8ca8b0bb
      Sunil Mushran 提交于
      ocfs2/cluster: Reorganize o2hb debugfs init
      
      o2hb debugfs handling is reorganized to allow for easy expansion.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      8ca8b0bb
    • S
      · 0e105d37
      Sunil Mushran 提交于
      ocfs2/cluster: Check slots for unconfigured live nodes
      
      o2hb currently checks slots for configured nodes only. This patch makes
      it check the slots for the live nodes too to take care of a race in which
      a node is removed from the configuration but not from the live map.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      0e105d37
  8. 07 10月, 2010 1 次提交
    • S
      · 18c50cb0
      Sunil Mushran 提交于
      ocfs2/cluster: Print messages when adding/removing heartbeat regions
      
      Prints messages when the user adds or removes heartbeat regions in global
      heartbeat mode. These messages are useful when debugging cluster related issues.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      18c50cb0
  9. 08 10月, 2010 2 次提交
    • S
      · b3c85c4c
      Sunil Mushran 提交于
      ocfs2/cluster: Get all heartbeat regions
      
      Export function in o2hb to get a list of heartbeat regions. It also adds an
      upper limit to the length of the heartbeat region name.
      
      o2hb_global_heartbeat_active() currently disables global heartbeat. It will
      be enabled in a later patch after all the code is added.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      b3c85c4c
    • S
      · 54b5187b
      Sunil Mushran 提交于
      ocfs2/cluster: Add heartbeat mode configfs parameter
      
      Add heartbeat mode parameter to the configfs tree. This will be used
      to set/show the heartbeat mode. The user is free to toggle the mode
      between local and global as long as there is no active heartbeat region.
      Signed-off-by: NSunil Mushran <sunil.mushran@oracle.com>
      54b5187b
  10. 30 3月, 2010 1 次提交
    • T
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking... · 5a0e3ad6
      Tejun Heo 提交于
      include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h
      
      percpu.h is included by sched.h and module.h and thus ends up being
      included when building most .c files.  percpu.h includes slab.h which
      in turn includes gfp.h making everything defined by the two files
      universally available and complicating inclusion dependencies.
      
      percpu.h -> slab.h dependency is about to be removed.  Prepare for
      this change by updating users of gfp and slab facilities include those
      headers directly instead of assuming availability.  As this conversion
      needs to touch large number of source files, the following script is
      used as the basis of conversion.
      
        http://userweb.kernel.org/~tj/misc/slabh-sweep.py
      
      The script does the followings.
      
      * Scan files for gfp and slab usages and update includes such that
        only the necessary includes are there.  ie. if only gfp is used,
        gfp.h, if slab is used, slab.h.
      
      * When the script inserts a new include, it looks at the include
        blocks and try to put the new include such that its order conforms
        to its surrounding.  It's put in the include block which contains
        core kernel includes, in the same order that the rest are ordered -
        alphabetical, Christmas tree, rev-Xmas-tree or at the end if there
        doesn't seem to be any matching order.
      
      * If the script can't find a place to put a new include (mostly
        because the file doesn't have fitting include block), it prints out
        an error message indicating which .h file needs to be added to the
        file.
      
      The conversion was done in the following steps.
      
      1. The initial automatic conversion of all .c files updated slightly
         over 4000 files, deleting around 700 includes and adding ~480 gfp.h
         and ~3000 slab.h inclusions.  The script emitted errors for ~400
         files.
      
      2. Each error was manually checked.  Some didn't need the inclusion,
         some needed manual addition while adding it to implementation .h or
         embedding .c file was more appropriate for others.  This step added
         inclusions to around 150 files.
      
      3. The script was run again and the output was compared to the edits
         from #2 to make sure no file was left behind.
      
      4. Several build tests were done and a couple of problems were fixed.
         e.g. lib/decompress_*.c used malloc/free() wrappers around slab
         APIs requiring slab.h to be added manually.
      
      5. The script was run on all .h files but without automatically
         editing them as sprinkling gfp.h and slab.h inclusions around .h
         files could easily lead to inclusion dependency hell.  Most gfp.h
         inclusion directives were ignored as stuff from gfp.h was usually
         wildly available and often used in preprocessor macros.  Each
         slab.h inclusion directive was examined and added manually as
         necessary.
      
      6. percpu.h was updated not to include slab.h.
      
      7. Build test were done on the following configurations and failures
         were fixed.  CONFIG_GCOV_KERNEL was turned off for all tests (as my
         distributed build env didn't work with gcov compiles) and a few
         more options had to be turned off depending on archs to make things
         build (like ipr on powerpc/64 which failed due to missing writeq).
      
         * x86 and x86_64 UP and SMP allmodconfig and a custom test config.
         * powerpc and powerpc64 SMP allmodconfig
         * sparc and sparc64 SMP allmodconfig
         * ia64 SMP allmodconfig
         * s390 SMP allmodconfig
         * alpha SMP allmodconfig
         * um on x86_64 SMP allmodconfig
      
      8. percpu.h modifications were reverted so that it could be applied as
         a separate patch and serve as bisection point.
      
      Given the fact that I had only a couple of failures from tests on step
      6, I'm fairly confident about the coverage of this conversion patch.
      If there is a breakage, it's likely to be something in one of the arch
      headers which should be easily discoverable easily on most builds of
      the specific arch.
      Signed-off-by: NTejun Heo <tj@kernel.org>
      Guess-its-ok-by: NChristoph Lameter <cl@linux-foundation.org>
      Cc: Ingo Molnar <mingo@redhat.com>
      Cc: Lee Schermerhorn <Lee.Schermerhorn@hp.com>
      5a0e3ad6
  11. 26 1月, 2010 1 次提交
  12. 24 12月, 2009 1 次提交
  13. 02 10月, 2009 1 次提交
  14. 23 5月, 2009 1 次提交
  15. 04 4月, 2009 1 次提交
  16. 06 1月, 2009 1 次提交
  17. 21 10月, 2008 2 次提交
  18. 18 7月, 2008 2 次提交
  19. 15 7月, 2008 1 次提交
    • J
      configfs: Allow ->make_item() and ->make_group() to return detailed errors. · 11c3b792
      Joel Becker 提交于
      The configfs operations ->make_item() and ->make_group() currently
      return a new item/group.  A return of NULL signifies an error.  Because
      of this, -ENOMEM is the only return code bubbled up the stack.
      
      Multiple folks have requested the ability to return specific error codes
      when these operations fail.  This patch adds that ability by changing the
      ->make_item/group() ops to return an int.
      
      Also updated are the in-kernel users of configfs.
      Signed-off-by: NJoel Becker <joel.becker@oracle.com>
      11c3b792
  20. 07 11月, 2007 1 次提交
  21. 20 10月, 2007 1 次提交
  22. 12 10月, 2007 1 次提交
  23. 10 10月, 2007 1 次提交
  24. 11 7月, 2007 3 次提交
  25. 03 5月, 2007 1 次提交
  26. 15 3月, 2007 2 次提交
  27. 08 2月, 2007 1 次提交
    • P
      [PATCH] ocfs2 heartbeat: clean up bio submission code · b559292e
      Philipp Reisner 提交于
      As was already pointed out Mathieu Avila on Thu, 07 Sep 2006 03:15:25 -0700
      that OCFS2 is expecting bio_add_page() to add pages to BIOs in an easily
      predictable manner.
      
      That is not true, especially for devices with own merge_bvec_fn().
      
      Therefore OCFS2's heartbeat code is very likely to fail on such devices.
      
      Move the bio_put() call into the bio's bi_end_io() function. This makes the
      whole idea of trying to predict the behaviour of bio_add_page() unnecessary.
      Removed compute_max_sectors() and o2hb_compute_request_limits().
      Signed-off-by: NPhilipp Reisner <philipp.reisner@linbit.com>
      Signed-off-by: NMark Fasheh <mark.fasheh@oracle.com>
      b559292e
  28. 29 12月, 2006 1 次提交
  29. 14 12月, 2006 1 次提交