From 64215376ecc4afa16f3e363124ba69c981ee4b8d Mon Sep 17 00:00:00 2001 From: Steven Whitehouse Date: Fri, 2 Nov 2007 09:14:31 +0000 Subject: [PATCH] --- yaml --- r: 76027 b: refs/heads/master c: e589665eb97b297412fb16b4c1737a01a91db903 h: refs/heads/master i: 76025: de9ad3e55890e97b4682dd6db9ff50682379a634 76023: ce9abc7bf80e1d339a158d5b3104bb7e07c7d249 v: v3 --- [refs] | 2 +- trunk/fs/gfs2/glock.c | 17 ++--------------- trunk/fs/gfs2/incore.h | 4 ---- 3 files changed, 3 insertions(+), 20 deletions(-) diff --git a/[refs] b/[refs] index c80d1d560bff..88f9c3ceb4d5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 3042a2ccd68d2b609d283219e51cba363aa35c1d +refs/heads/master: e589665eb97b297412fb16b4c1737a01a91db903 diff --git a/trunk/fs/gfs2/glock.c b/trunk/fs/gfs2/glock.c index e668808b127f..5fbd9d34ce23 100644 --- a/trunk/fs/gfs2/glock.c +++ b/trunk/fs/gfs2/glock.c @@ -594,12 +594,7 @@ static void run_queue(struct gfs2_glock *gl) if (!list_empty(&gl->gl_waiters1)) { gh = list_entry(gl->gl_waiters1.next, struct gfs2_holder, gh_list); - - if (test_bit(HIF_MUTEX, &gh->gh_iflags)) - blocked = rq_mutex(gh); - else - gfs2_assert_warn(gl->gl_sbd, 0); - + blocked = rq_mutex(gh); } else if (test_bit(GLF_DEMOTE, &gl->gl_flags)) { blocked = rq_demote(gl); if (gl->gl_waiters2 && !blocked) { @@ -610,12 +605,7 @@ static void run_queue(struct gfs2_glock *gl) } else if (!list_empty(&gl->gl_waiters3)) { gh = list_entry(gl->gl_waiters3.next, struct gfs2_holder, gh_list); - - if (test_bit(HIF_PROMOTE, &gh->gh_iflags)) - blocked = rq_promote(gh); - else - gfs2_assert_warn(gl->gl_sbd, 0); - + blocked = rq_promote(gh); } else break; @@ -636,7 +626,6 @@ static void gfs2_glmutex_lock(struct gfs2_glock *gl) struct gfs2_holder gh; gfs2_holder_init(gl, 0, 0, &gh); - set_bit(HIF_MUTEX, &gh.gh_iflags); if (test_and_set_bit(HIF_WAIT, &gh.gh_iflags)) BUG(); @@ -1160,8 +1149,6 @@ int gfs2_glock_nq(struct gfs2_holder *gh) return -EIO; } - set_bit(HIF_PROMOTE, &gh->gh_iflags); - spin_lock(&gl->gl_spin); add_to_queue(gh); run_queue(gl); diff --git a/trunk/fs/gfs2/incore.h b/trunk/fs/gfs2/incore.h index 089dba412cc0..478023e9fda6 100644 --- a/trunk/fs/gfs2/incore.h +++ b/trunk/fs/gfs2/incore.h @@ -141,10 +141,6 @@ struct gfs2_glock_operations { }; enum { - /* Actions */ - HIF_MUTEX = 0, - HIF_PROMOTE = 1, - /* States */ HIF_HOLDER = 6, HIF_FIRST = 7,