aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/recovery.c
diff options
context:
space:
mode:
authorSteven Whitehouse <swhiteho@redhat.com>2010-09-27 10:58:11 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2010-09-27 10:58:11 -0400
commitd0795f912318f65b800c6b619d749c3bf7c930fb (patch)
treec3d13ab5e4864306cc215d4dd6b6cecb1e33d77b /fs/gfs2/recovery.c
parentc80dbb58f9c3f84372e37dfe80b41810052ad62f (diff)
GFS2: Fix journal check for spectator mounts
When checking journals for spectator mounts, we cannot rely on the journal being locked, whatever its jid might be. This patch ensures that we always get the journal locks when checking journals for a spectator mount. Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/recovery.c')
-rw-r--r--fs/gfs2/recovery.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/gfs2/recovery.c b/fs/gfs2/recovery.c
index f7f89a94a5a4..666548e14596 100644
--- a/fs/gfs2/recovery.c
+++ b/fs/gfs2/recovery.c
@@ -456,7 +456,8 @@ void gfs2_recover_func(struct work_struct *work)
456 unsigned int pass; 456 unsigned int pass;
457 int error; 457 int error;
458 458
459 if (jd->jd_jid != sdp->sd_lockstruct.ls_jid) { 459 if (sdp->sd_args.ar_spectator ||
460 (jd->jd_jid != sdp->sd_lockstruct.ls_jid)) {
460 fs_info(sdp, "jid=%u: Trying to acquire journal lock...\n", 461 fs_info(sdp, "jid=%u: Trying to acquire journal lock...\n",
461 jd->jd_jid); 462 jd->jd_jid);
462 463