@@ -591,8 +591,7 @@ static void finish_xmote(struct gfs2_glock *gl, unsigned int ret)
591591 if (gh && !test_bit (GLF_DEMOTE_IN_PROGRESS , & gl -> gl_flags )) {
592592 /* move to back of queue and try next entry */
593593 if (ret & LM_OUT_CANCELED ) {
594- if ((gh -> gh_flags & LM_FLAG_PRIORITY ) == 0 )
595- list_move_tail (& gh -> gh_list , & gl -> gl_holders );
594+ list_move_tail (& gh -> gh_list , & gl -> gl_holders );
596595 gh = find_first_waiter (gl );
597596 gl -> gl_target = gh -> gh_state ;
598597 goto retry ;
@@ -679,8 +678,7 @@ __acquires(&gl->gl_lockref.lock)
679678 gh && !(gh -> gh_flags & LM_FLAG_NOEXP ))
680679 goto skip_inval ;
681680
682- lck_flags &= (LM_FLAG_TRY | LM_FLAG_TRY_1CB | LM_FLAG_NOEXP |
683- LM_FLAG_PRIORITY );
681+ lck_flags &= (LM_FLAG_TRY | LM_FLAG_TRY_1CB | LM_FLAG_NOEXP );
684682 GLOCK_BUG_ON (gl , gl -> gl_state == target );
685683 GLOCK_BUG_ON (gl , gl -> gl_state == gl -> gl_target );
686684 if ((target == LM_ST_UNLOCKED || target == LM_ST_DEFERRED ) &&
@@ -1515,27 +1513,20 @@ __acquires(&gl->gl_lockref.lock)
15151513 }
15161514 if (test_bit (HIF_HOLDER , & gh2 -> gh_iflags ))
15171515 continue ;
1518- if (unlikely ((gh -> gh_flags & LM_FLAG_PRIORITY ) && !insert_pt ))
1519- insert_pt = & gh2 -> gh_list ;
15201516 }
15211517 trace_gfs2_glock_queue (gh , 1 );
15221518 gfs2_glstats_inc (gl , GFS2_LKS_QCOUNT );
15231519 gfs2_sbstats_inc (gl , GFS2_LKS_QCOUNT );
15241520 if (likely (insert_pt == NULL )) {
15251521 list_add_tail (& gh -> gh_list , & gl -> gl_holders );
1526- if (unlikely (gh -> gh_flags & LM_FLAG_PRIORITY ))
1527- goto do_cancel ;
15281522 return ;
15291523 }
15301524 list_add_tail (& gh -> gh_list , insert_pt );
1531- do_cancel :
15321525 gh = list_first_entry (& gl -> gl_holders , struct gfs2_holder , gh_list );
1533- if (!(gh -> gh_flags & LM_FLAG_PRIORITY )) {
1534- spin_unlock (& gl -> gl_lockref .lock );
1535- if (sdp -> sd_lockstruct .ls_ops -> lm_cancel )
1536- sdp -> sd_lockstruct .ls_ops -> lm_cancel (gl );
1537- spin_lock (& gl -> gl_lockref .lock );
1538- }
1526+ spin_unlock (& gl -> gl_lockref .lock );
1527+ if (sdp -> sd_lockstruct .ls_ops -> lm_cancel )
1528+ sdp -> sd_lockstruct .ls_ops -> lm_cancel (gl );
1529+ spin_lock (& gl -> gl_lockref .lock );
15391530 return ;
15401531
15411532trap_recursive :
@@ -2227,8 +2218,6 @@ static const char *hflags2str(char *buf, u16 flags, unsigned long iflags)
22272218 * p ++ = 'e' ;
22282219 if (flags & LM_FLAG_ANY )
22292220 * p ++ = 'A' ;
2230- if (flags & LM_FLAG_PRIORITY )
2231- * p ++ = 'p' ;
22322221 if (flags & LM_FLAG_NODE_SCOPE )
22332222 * p ++ = 'n' ;
22342223 if (flags & GL_ASYNC )
0 commit comments