Skip to contentSkip to conversation

gfs2: improvements to recovery and withdraw process (v2)

PATCH New Bob Peterson 3 participants 5 messages Nov 21, 2018 – Nov 29, 2018 GFS2 file system

lore
Share & tools
lore
#0 lore raw

cover gfs2: improvements to recovery and withdraw process (v2)

Hi,

This is a second draft of a two-patch set to fix some of the nasty journal recovery problems I've found lately.

The original post from 08 November had horribly bad and inaccurate comments, and Steve Whitehouse and Andreas Gruenbacher pointed out. This version is hopefully better and more accurately describes what the patches do and how they work. Also, I fixed a superblock flag that was improperly declared as a glock flag.

Other than the renamed and re-valued superblock flag, the code remains unchanged from the previous version. It probably needs a bit more testing, but it seems to work well.
---
The problems have to do with file system corruption caused when recovery replays a journal after the resource group blocks have been unlocked by the recovery process. In other words, when no cluster node takes responsibility to replay the journal of a withdrawing node, then it gets replayed later on, after the blocks contents have been changed.

The first patch prevents gfs2 from attempting recovery if the file system is withdrawn or has journal IO errors. Trying to recover your own journal from either of these unstable conditions is dangerous and likely to corrupt the file system.

The second patch is more extensive. When a node withdraws from a file system it signals all other nodes with the file system mounted to perform recovery on its journal, since it cannot safely recover its own journal. This is accomplished by a new non-disk callback glop used exclusively by the "live" glock, which sets up an lvb in the glock to indicate which journal(s) need to be recovered.

Regards,

Bob Peterson
---
Bob Peterson (2):
gfs2: Ignore recovery attempts if gfs2 has io error or is withdrawn
gfs2: initiate journal recovery as soon as a node withdraws

 fs/gfs2/glock.c    |  5 ++-
 fs/gfs2/glops.c    | 47 +++++++++++++++++++++++
 fs/gfs2/incore.h   |  3 ++
 fs/gfs2/lock_dlm.c | 95 ++++++++++++++++++++++++++++++++++++++++++++++
 fs/gfs2/log.c      | 62 ++++++++++++++++--------------
 fs/gfs2/super.c    |  5 ++-
 fs/gfs2/super.h    |  1 +
 fs/gfs2/util.c     | 84 ++++++++++++++++++++++++++++++++++++++++
 fs/gfs2/util.h     | 13 +++++++
 9 files changed, 282 insertions(+), 33 deletions(-)
Signature · 1 line
2.19.1
#1 lore raw

PATCH 1/2 gfs2: Ignore recovery attempts if gfs2 has io error or is withdrawn

This patch addresses various problems with gfs2/dlm recovery.

For example, suppose a node with a bunch of gfs2 mounts suddenly reboots due to kernel panic, and dlm determines it should perform recovery. DLM does so from a pseudo-state machine calling various callbacks into lock_dlm to perform a sequence of steps. It uses generation numbers and recover bits in dlm "control" lock lvbs.

Now suppose another node tries to recover the failed node's journal, but in so doing, encounters an IO error or withdraws due to unforeseen circumstances, such as an hba driver failure. In these cases, the recovery would eventually bail out, but it would still update its generation number in the lvb. The other nodes would all see the newer generation number and think they don't need to do recovery because the generation number is newer than the last one they saw, and therefore someone else has already taken care of it.

If the file system has an io error or is withdrawn, it cannot safely replay any journals (its own or others) but someone else still needs to do it. Therefore we don't want it messing with the journal recovery generation numbers: the local generation numbers eventually get put into the lvb generation numbers to be seen by all nodes.

This patch adds checks to many of the callbacks used by dlm in its recovery state machine so that the functions are ignored and skipped if an io error has occurred or if the file system was withdraw.

---
 fs/gfs2/lock_dlm.c | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
fs/gfs2/lock_dlm.c +36 -0
index 31df26ed7854..68ca648cf918 100644
@@ -1081,6 +1081,14 @@ static void gdlm_recover_prep(void *arg)
 	struct gfs2_sbd *sdp = arg;
 	struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 
+	if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+		fs_err(sdp, "recover_prep ignored due to io error.\n");
+		return;
+	}
+	if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+		fs_err(sdp, "recover_prep ignored due to withdraw.\n");
+		return;
+	}
 	spin_lock(&ls->ls_recover_spin);
 	ls->ls_recover_block = ls->ls_recover_start;
 	set_bit(DFL_DLM_RECOVERY, &ls->ls_recover_flags);
@@ -1103,6 +1111,16 @@ static void gdlm_recover_slot(void *arg, struct dlm_slot *slot)
 	struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 	int jid = slot->slot - 1;
 
+	if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+		fs_err(sdp, "recover_slot jid %d ignored due to io error.\n",
+		       jid);
+		return;
+	}
+	if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+		fs_err(sdp, "recover_slot jid %d ignored due to withdraw.\n",
+		       jid);
+		return;
+	}
 	spin_lock(&ls->ls_recover_spin);
 	if (ls->ls_recover_size < jid + 1) {
 		fs_err(sdp, "recover_slot jid %d gen %u short size %d\n",
@@ -1127,6 +1145,14 @@ static void gdlm_recover_done(void *arg, struct dlm_slot *slots, int num_slots,
 	struct gfs2_sbd *sdp = arg;
 	struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 
+	if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+		fs_err(sdp, "recover_done ignored due to io error.\n");
+		return;
+	}
+	if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+		fs_err(sdp, "recover_done ignored due to withdraw.\n");
+		return;
+	}
 	/* ensure the ls jid arrays are large enough */
 	set_recover_size(sdp, slots, num_slots);
 
@@ -1154,6 +1180,16 @@ static void gdlm_recovery_result(struct gfs2_sbd *sdp, unsigned int jid,
 {
 	struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 
+	if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+		fs_err(sdp, "recovery_result jid %d ignored due to io error.\n",
+		       jid);
+		return;
+	}
+	if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+		fs_err(sdp, "recovery_result jid %d ignored due to withdraw.\n",
+		       jid);
+		return;
+	}
 	if (test_bit(DFL_NO_DLM_OPS, &ls->ls_recover_flags))
 		return;
 
Signature · 1 line
2.19.1
#2 lore raw

PATCH 1/2 gfs2: Ignore recovery attempts if gfs2 has io error or is withdrawn

Hi,

Quoted 104 lines · Bob Peterson

This patch addresses various problems with gfs2/dlm recovery.

For example, suppose a node with a bunch of gfs2 mounts suddenly reboots due to kernel panic, and dlm determines it should perform recovery. DLM does so from a pseudo-state machine calling various callbacks into lock_dlm to perform a sequence of steps. It uses generation numbers and recover bits in dlm "control" lock lvbs.

Now suppose another node tries to recover the failed node's journal, but in so doing, encounters an IO error or withdraws due to unforeseen circumstances, such as an hba driver failure. In these cases, the recovery would eventually bail out, but it would still update its generation number in the lvb. The other nodes would all see the newer generation number and think they don't need to do recovery because the generation number is newer than the last one they saw, and therefore someone else has already taken care of it.

If the file system has an io error or is withdrawn, it cannot safely replay any journals (its own or others) but someone else still needs to do it. Therefore we don't want it messing with the journal recovery generation numbers: the local generation numbers eventually get put into the lvb generation numbers to be seen by all nodes.

This patch adds checks to many of the callbacks used by dlm in its recovery state machine so that the functions are ignored and skipped if an io error has occurred or if the file system was withdraw.

---
 fs/gfs2/lock_dlm.c | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)
fs/gfs2/lock_dlm.c +36 -1
index 31df26ed7854..68ca648cf918 100644
@@ -1081,6 +1081,14 @@ static void gdlm_recover_prep(void *arg)
        struct gfs2_sbd *sdp = arg;
        struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 
+       if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+               fs_err(sdp, "recover_prep ignored due to io error.\n");
+               return;
+       }
+       if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+               fs_err(sdp, "recover_prep ignored due to withdraw.\n");
+               return;
+       }
        spin_lock(&ls->ls_recover_spin);
        ls->ls_recover_block = ls->ls_recover_start;
        set_bit(DFL_DLM_RECOVERY, &ls->ls_recover_flags);
@@ -1103,6 +1111,16 @@ static void gdlm_recover_slot(void *arg, struct dlm_slot *slot)
        struct lm_lockstruct *ls = &sdp->sd_lockstruct;
        int jid = slot->slot - 1;
 
+       if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+               fs_err(sdp, "recover_slot jid %d ignored due to io error.\n",
+                      jid);
+               return;
+       }
+       if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+               fs_err(sdp, "recover_slot jid %d ignored due to withdraw.\n",
+                      jid);
+               return;
+       }
        spin_lock(&ls->ls_recover_spin);
        if (ls->ls_recover_size < jid + 1) {
                fs_err(sdp, "recover_slot jid %d gen %u short size %d\n",
@@ -1127,6 +1145,14 @@ static void gdlm_recover_done(void *arg, struct dlm_slot *slots, int num_slots,
        struct gfs2_sbd *sdp = arg;
        struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 
+       if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+               fs_err(sdp, "recover_done ignored due to io error.\n");
+               return;
+       }
+       if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+               fs_err(sdp, "recover_done ignored due to withdraw.\n");
+               return;
+       }
        /* ensure the ls jid arrays are large enough */
        set_recover_size(sdp, slots, num_slots);
 
@@ -1154,6 +1180,16 @@ static void gdlm_recovery_result(struct gfs2_sbd *sdp, unsigned int jid,
 {
        struct lm_lockstruct *ls = &sdp->sd_lockstruct;
 
+       if (test_bit(SDF_AIL1_IO_ERROR, &sdp->sd_flags)) {
+               fs_err(sdp, "recovery_result jid %d ignored due to io error.\n",
+                      jid);
+               return;
+       }
+       if (test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) {
+               fs_err(sdp, "recovery_result jid %d ignored due to withdraw.\n",
+                      jid);
+               return;
+       }
        if (test_bit(DFL_NO_DLM_OPS, &ls->ls_recover_flags))
                return;
 
--
Quoted 2 lines

2.19.1

I'm not very familiar with the glock recovery state machine, but this patch looks reasonable as far as I can tell.

Thanks,
Andreas

#3 lore raw

PATCH 2/2 gfs2: initiate journal recovery as soon as a node withdraws

In reply to Bob Peterson

This patch uses the "live" glock and some new lvbs to signal when a node has withdrawn from a file system. Nodes who see this try to initiate journal recovery.

Definitions:

1. The "withdrawer" is a node that has withdrawn from a gfs2 file system due to some inconsistency.
2. The "recoverer" is a node who sees the need to replay the withdrawers's journal.

The way it works is as follows:

When things are running normally, all nodes with the file system mounted have the "live" (non-disk) glock enqueued in SH (shared) mode.

When a node withdraws from the file system, the withdrawer dequeues the "live" glock and re-enqueues it in EX mode. This forces all other nodes to see a demote request for the glock. In the act of demoting and promoting the live glock, a new lvb is used to inform the other nodes that it has withdrawn and its journal needs recovery.

Although unlikely, there may be multiple withdrawers and dlm keeps the lvb consistent between them, so many of these lvb bits may be set at any given time, indicating more than one node has withdrawn and all their journals need recovery.

Once the withdrawer has the live glock in EX, it knows all the other nodes have the live glock in UN (unlocked) and have gone through their callback, so they know it has withdrawn.

The withdrawer then dequeues the live glock, demoting it back to UN, then pauses to give the other nodes a chance to reacquire it. This pause will hopefully prevent gfs2's caching the transition from EX->UN->SH from simplifying it to a DLM lock convert directly from EX->SH, which would keep the other nodes from doing recovery by making them wait forever for the glock (because once it's back in SH, nothing else is going to demote it, short of an unmount).

After the pause, it re-enqueues the live glock in shared (SH) mode once again, thus enabling everyone to resume working normally after recovery has taken place.

When the other nodes see the demote of the live lock, they set a flag in the superblock indicating recovery is in progress.

Unfortunately, lvbs are only passed by dlm on lock conversions, so the nodes need to re-enqueue the live glock. They all need it back in SH mode eventually, but only after journal recovery. They also need to prevent other nodes from doing recovery at the same time for the failed node's journal. For node failures, DLM takes care of this problem for us by setting its BLOCK_LOCKS flag and going through its recovery state machine. However, in the case of a withdraw, we can't use the same mechanism.

So the recoverer acquires the live glock in EX, then performs journal recovery for all journals indicated in the lvb. Taking the live glock in EX at this time may cause a race with the original withdrawer, who enqueued in EX, then UN, then back to SH. There's a new superblock flag GLF_IN_RECOVERY that is set when the node withdraws and isn't cleared until recovery is complete. That prevents the recoverer's new demote callback for the live lock in EX from mistaking it for another withdraw of the recoverer.

The recoverer's promote to EX does not cause a glock demote on any other potential recoverer, since by definition they must have already demoted the glock to UN before the recoverer got it.

The first recoverer is granted the live glock in EX and performs journal recovery, clearing the recovery bits in the live glock lvb as it does. The recoverer then demotes the glock from EX back to SH.

All subsequent nodes also acquire the glock in EX, but the lvb bits are then clear, so no additional recovery is done. They skip the bulk of it and transition the live glock back to SH too.

In order to accomodate this process, I had to make several additional changes:

(1) I had to allow non-disk glocks (like the live glock) to be enqueued and promoted in do_xmote, even when the file system is withdrawn. This should never cause a problem, since they are "non-disk" and therefore have no tangible resources to corrupt.
(2) The glock demote callback for the live lock cannot call journal recovery directly. That's because it's a callback made from dlm, which means it has dlm resources locked. If you try to call recovery here, it would be a circular dependency that could never be filled: dlm's callback would try to lock dlm resources it already has locked. Therefore I had to separate the actual recovery from the callback. I therefore modified gfs2_control_func and added a step 0 (as Dave Teigland suggested) to signal a withdraw. Instead, the callback queues work to the workqueue that causes gfs2_control_func to run in a different context after the callback is complete. To that end, I changed function gfs2_control_func (the node failure recovery state machine) to perform this new step 0 to recover withdrawer's journals with new function remote_withdraw rather than its normal "dead node" recovery sequence.
(3) GFS2 now needs to know the difference between a withdraw that occurs inside any of the journal-related code from all other withdraws. This is needed to prevent recursion where an error (e.g. i/o error writing to the journal) causes a withdraw, and the withdraw tries to write out the ail lists (or some such) causing more withdraws. To prevent recursion, I added a new SDF_JOURNAL_WITHDRAW flag that prevents withdraw from recursing on itself.
(4) Instances of the local "withdraw" variable are now replaced by a new superblock flag because once the file system is withdrawn in this way, it needs to affect its behavior that from that point on until unmount or reboot.

---
 fs/gfs2/glock.c    |  5 +--
 fs/gfs2/glops.c    | 47 ++++++++++++++++++++++++++
 fs/gfs2/incore.h   |  3 ++
 fs/gfs2/lock_dlm.c | 59 ++++++++++++++++++++++++++++++++
 fs/gfs2/log.c      | 62 ++++++++++++++++++----------------
 fs/gfs2/super.c    |  5 +--
 fs/gfs2/super.h    |  1 +
 fs/gfs2/util.c     | 84 ++++++++++++++++++++++++++++++++++++++++++++++
 fs/gfs2/util.h     | 13 +++++++
 9 files changed, 246 insertions(+), 33 deletions(-)
fs/gfs2/glock.c +3 -2
index 05431324b262..38a8a5eb8245 100644
@@ -543,7 +543,7 @@ __acquires(&gl->gl_lockref.lock)
 	int ret;
 
 	if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags)) &&
-	    target != LM_ST_UNLOCKED)
+	    gl->gl_ops != &gfs2_nondisk_glops && target != LM_ST_UNLOCKED)
 		return;
 	lck_flags &= (LM_FLAG_TRY | LM_FLAG_TRY_1CB | LM_FLAG_NOEXP |
 		      LM_FLAG_PRIORITY);
@@ -1092,7 +1092,8 @@ int gfs2_glock_nq(struct gfs2_holder *gh)
 	struct gfs2_sbd *sdp = gl->gl_name.ln_sbd;
 	int error = 0;
 
-	if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
+	if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags) &&
+		     gl->gl_ops != &gfs2_nondisk_glops))
 		return -EIO;
 
 	if (test_bit(GLF_LRU, &gl->gl_flags))
fs/gfs2/glops.c +47 -0

65 lines not on this page · raw message

fs/gfs2/incore.h +3 -0
index 663759abe60d..9f9b1a760ba5 100644
@@ -621,6 +621,9 @@ enum {
 	SDF_SKIP_DLM_UNLOCK	= 8,
 	SDF_FORCE_AIL_FLUSH     = 9,
 	SDF_AIL1_IO_ERROR	= 10,
+	SDF_REMOTE_WITHDRAW	= 11, /* another node did withdraw */
+	SDF_JOURNAL_WITHDRAW	= 12, /* Was withdrawn from a log operation */
+	SDF_IN_RECOVERY		= 13, /* Performing remote recovery */
 };
 
 enum gfs2_freeze_state {
fs/gfs2/lock_dlm.c +59 -0

83 lines not on this page · raw message

fs/gfs2/log.c +33 -29

164 lines not on this page · raw message

fs/gfs2/super.c +3 -2
index d4b11c903971..35a2a8b6f427 100644
@@ -845,7 +845,7 @@ static void gfs2_dirty_inode(struct inode *inode, int flags)
  * Returns: errno
  */
 
-static int gfs2_make_fs_ro(struct gfs2_sbd *sdp)
+int gfs2_make_fs_ro(struct gfs2_sbd *sdp)
 {
 	struct gfs2_holder freeze_gh;
 	int error;
@@ -923,7 +923,8 @@ static void gfs2_put_super(struct super_block *sb)
 
 	if (!sdp->sd_args.ar_spectator) {
 		gfs2_glock_dq_uninit(&sdp->sd_journal_gh);
-		gfs2_glock_dq_uninit(&sdp->sd_jinode_gh);
+		if (gfs2_holder_initialized(&sdp->sd_jinode_gh))
+			gfs2_glock_dq_uninit(&sdp->sd_jinode_gh);
 		gfs2_glock_dq_uninit(&sdp->sd_sc_gh);
 		gfs2_glock_dq_uninit(&sdp->sd_qc_gh);
 		iput(sdp->sd_sc_inode);
fs/gfs2/super.h +1 -0
index 73c97dccae21..aa401752da15 100644
@@ -46,6 +46,7 @@ extern void update_statfs(struct gfs2_sbd *sdp, struct buffer_head *m_bh,
 			  struct buffer_head *l_bh);
 extern int gfs2_statfs_sync(struct super_block *sb, int type);
 extern void gfs2_freeze_func(struct work_struct *work);
+extern int gfs2_make_fs_ro(struct gfs2_sbd *sdp);
 
 extern struct file_system_type gfs2_fs_type;
 extern struct file_system_type gfs2meta_fs_type;
fs/gfs2/util.c +84 -0

117 lines not on this page · raw message

fs/gfs2/util.h +13 -0
index 9278fecba632..336ad543efe1 100644
@@ -41,11 +41,17 @@ do { \
 
 int gfs2_assert_withdraw_i(struct gfs2_sbd *sdp, char *assertion,
 			   const char *function, char *file, unsigned int line);
+int gfs2_assert_withdraw_j(struct gfs2_sbd *sdp, char *assertion,
+			   const char *function, char *file, unsigned int line);
 
 #define gfs2_assert_withdraw(sdp, assertion) \
 ((likely(assertion)) ? 0 : gfs2_assert_withdraw_i((sdp), #assertion, \
 					__func__, __FILE__, __LINE__))
 
+#define gfs2_jrnl_assert_withdraw(sdp, assertion) \
+((likely(assertion)) ? 0 : gfs2_assert_withdraw_j((sdp), #assertion, \
+					__func__, __FILE__, __LINE__))
+
 
 int gfs2_assert_warn_i(struct gfs2_sbd *sdp, char *assertion,
 		       const char *function, char *file, unsigned int line);
@@ -140,12 +146,19 @@ void gfs2_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
 			const char *function, char *file, unsigned int line,
 			bool withdraw);
 
+void gfs2_jrnl_io_error_bh_i(struct gfs2_sbd *sdp, struct buffer_head *bh,
+			     const char *function, char *file,
+			     unsigned int line, bool withdraw);
+
 #define gfs2_io_error_bh_wd(sdp, bh) \
 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, true);
 
 #define gfs2_io_error_bh(sdp, bh) \
 gfs2_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false);
 
+#define gfs2_jrnl_io_error_bh(sdp, bh) \
+gfs2_jrnl_io_error_bh_i((sdp), (bh), __func__, __FILE__, __LINE__, false);
+
 
 extern struct kmem_cache *gfs2_glock_cachep;
 extern struct kmem_cache *gfs2_glock_aspace_cachep;
Signature · 1 line
2.19.1
#4 lore raw

cover gfs2: improvements to recovery and withdraw process (v2)

In reply to Bob Peterson

Hi,

Quoted 41 lines · Bob Peterson

Hi,

This is a second draft of a two-patch set to fix some of the nasty journal recovery problems I've found lately.

The original post from 08 November had horribly bad and inaccurate comments, and Steve Whitehouse and Andreas Gruenbacher pointed out. This version is hopefully better and more accurately describes what the patches do and how they work. Also, I fixed a superblock flag that was improperly declared as a glock flag.

Other than the renamed and re-valued superblock flag, the code remains unchanged from the previous version. It probably needs a bit more testing, but it seems to work well.
---
The problems have to do with file system corruption caused when recovery replays a journal after the resource group blocks have been unlocked by the recovery process. In other words, when no cluster node takes responsibility to replay the journal of a withdrawing node, then it gets replayed later on, after the blocks contents have been changed.

The first patch prevents gfs2 from attempting recovery if the file system is withdrawn or has journal IO errors. Trying to recover your own journal from either of these unstable conditions is dangerous and likely to corrupt the file system.

The second patch is more extensive. When a node withdraws from a file system it signals all other nodes with the file system mounted to perform recovery on its journal, since it cannot safely recover its own journal. This is accomplished by a new non-disk callback glop used exclusively by the "live" glock, which sets up an lvb in the glock to indicate which journal(s) need to be recovered.

Regards,

Bob Peterson
---
Bob Peterson (2):
gfs2: Ignore recovery attempts if gfs2 has io error or is withdrawn
gfs2: initiate journal recovery as soon as a node withdraws

Quoted 11 lines
  fs/gfs2/glock.c    |  5 ++-
  fs/gfs2/glops.c    | 47 +++++++++++++++++++++++
  fs/gfs2/incore.h   |  3 ++
  fs/gfs2/lock_dlm.c | 95 ++++++++++++++++++++++++++++++++++++++++++++++
  fs/gfs2/log.c      | 62 ++++++++++++++++--------------
  fs/gfs2/super.c    |  5 ++-
  fs/gfs2/super.h    |  1 +
  fs/gfs2/util.c     | 84 ++++++++++++++++++++++++++++++++++++++++
  fs/gfs2/util.h     | 13 +++++++
  9 files changed, 282 insertions(+), 33 deletions(-)

Yes, that looks a bit cleaner now,

Steve.