Skip to contentSkip to conversation

Remove unused HIF_ABORTED flag

Cluster-devel Steven Whitehouse 1 participant 1 message Aug 1, 2007 GFS2 file system

lore
Share & tools
lore
#0 lore raw

From 8a74a33fecdf651e02efb705adef2d93dc7752e8 Mon Sep 17 00:00:00 2001
From: Steven Whitehouse <[email protected]>
Date: Wed, 1 Aug 2007 11:08:29 +0100
Subject: [PATCH] [GFS2] Remove unused HIF_ABORTED flag

We never try to wait for a gfs2_holder which has returned -EINVAL when initially queued, so that the HIF_ABORTED flag is not needed.

fs/gfs2/glock.c +1 -6
index fd8cf02..5e2c269 100644
@@ -881,9 +881,6 @@ static int glock_wait_internal(struct gfs2_holder *gh)
 	struct gfs2_glock *gl = gh->gh_gl;
 	struct gfs2_sbd *sdp = gl->gl_sbd;
 
-	if (test_bit(HIF_ABORTED, &gh->gh_iflags))
-		return -EIO;
-
 	if (gh->gh_flags & (LM_FLAG_TRY | LM_FLAG_TRY_1CB)) {
 		spin_lock(&gl->gl_spin);
 		if (gl->gl_req_gh != gh &&
@@ -996,10 +993,8 @@ int gfs2_glock_nq(struct gfs2_holder *gh)
 	int error = 0;
 
 restart:
-	if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags))) {
-		set_bit(HIF_ABORTED, &gh->gh_iflags);
+	if (unlikely(test_bit(SDF_SHUTDOWN, &sdp->sd_flags)))
 		return -EIO;
-	}
 
 	spin_lock(&gl->gl_spin);
 	add_to_queue(gh);
fs/gfs2/incore.h +0 -1
index 1d90ff1..cc5ca58 100644
@@ -135,7 +135,6 @@ enum {
 
 	/* States */
 	HIF_HOLDER		= 6,
-	HIF_ABORTED		= 9,
 	HIF_WAIT		= 10,
 };
 
Signature · 1 line
1.5.1.2