@@ -61,8 +61,8 @@ struct gfs2_glock_iter {
61
61
typedef void (* glock_examiner ) (struct gfs2_glock * gl );
62
62
63
63
static void do_xmote (struct gfs2_glock * gl , struct gfs2_holder * gh , unsigned int target );
64
- static void handle_callback (struct gfs2_glock * gl , unsigned int state ,
65
- unsigned long delay , bool remote );
64
+ static void request_demote (struct gfs2_glock * gl , unsigned int state ,
65
+ unsigned long delay , bool remote );
66
66
67
67
static struct dentry * gfs2_root ;
68
68
static struct workqueue_struct * glock_workqueue ;
@@ -811,7 +811,7 @@ __acquires(&gl->gl_lockref.lock)
811
811
(target != LM_ST_UNLOCKED ||
812
812
test_bit (SDF_WITHDRAW_RECOVERY , & sdp -> sd_flags ))) {
813
813
if (!is_system_glock (gl )) {
814
- handle_callback (gl , LM_ST_UNLOCKED , 0 , false); /* sets demote */
814
+ request_demote (gl , LM_ST_UNLOCKED , 0 , false);
815
815
/*
816
816
* Ordinarily, we would call dlm and its callback would call
817
817
* finish_xmote, which would call state_change() to the new state.
@@ -1459,7 +1459,7 @@ int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs)
1459
1459
}
1460
1460
1461
1461
/**
1462
- * handle_callback - process a demote request
1462
+ * request_demote - process a demote request
1463
1463
* @gl: the glock
1464
1464
* @state: the state the caller wants us to change to
1465
1465
* @delay: zero to demote immediately; otherwise pending demote
@@ -1469,8 +1469,8 @@ int gfs2_glock_async_wait(unsigned int num_gh, struct gfs2_holder *ghs)
1469
1469
* practise: LM_ST_SHARED and LM_ST_UNLOCKED
1470
1470
*/
1471
1471
1472
- static void handle_callback (struct gfs2_glock * gl , unsigned int state ,
1473
- unsigned long delay , bool remote )
1472
+ static void request_demote (struct gfs2_glock * gl , unsigned int state ,
1473
+ unsigned long delay , bool remote )
1474
1474
{
1475
1475
if (delay )
1476
1476
set_bit (GLF_PENDING_DEMOTE , & gl -> gl_flags );
@@ -1686,7 +1686,7 @@ static void __gfs2_glock_dq(struct gfs2_holder *gh)
1686
1686
* below.
1687
1687
*/
1688
1688
if (gh -> gh_flags & GL_NOCACHE )
1689
- handle_callback (gl , LM_ST_UNLOCKED , 0 , false);
1689
+ request_demote (gl , LM_ST_UNLOCKED , 0 , false);
1690
1690
1691
1691
list_del_init (& gh -> gh_list );
1692
1692
clear_bit (HIF_HOLDER , & gh -> gh_iflags );
@@ -1933,7 +1933,7 @@ void gfs2_glock_cb(struct gfs2_glock *gl, unsigned int state)
1933
1933
if (test_bit (GLF_HAVE_REPLY , & gl -> gl_flags ))
1934
1934
delay = gl -> gl_hold_time ;
1935
1935
}
1936
- handle_callback (gl , state , delay , true);
1936
+ request_demote (gl , state , delay , true);
1937
1937
gfs2_glock_queue_work (gl , delay );
1938
1938
spin_unlock (& gl -> gl_lockref .lock );
1939
1939
}
@@ -2062,7 +2062,7 @@ __acquires(&lru_lock)
2062
2062
freed ++ ;
2063
2063
gl -> gl_lockref .count ++ ;
2064
2064
if (demote_ok (gl ))
2065
- handle_callback (gl , LM_ST_UNLOCKED , 0 , false);
2065
+ request_demote (gl , LM_ST_UNLOCKED , 0 , false);
2066
2066
gfs2_glock_queue_work (gl , 0 );
2067
2067
spin_unlock (& gl -> gl_lockref .lock );
2068
2068
cond_resched_lock (& lru_lock );
@@ -2205,7 +2205,7 @@ static void clear_glock(struct gfs2_glock *gl)
2205
2205
if (!__lockref_is_dead (& gl -> gl_lockref )) {
2206
2206
gl -> gl_lockref .count ++ ;
2207
2207
if (gl -> gl_state != LM_ST_UNLOCKED )
2208
- handle_callback (gl , LM_ST_UNLOCKED , 0 , false);
2208
+ request_demote (gl , LM_ST_UNLOCKED , 0 , false);
2209
2209
gfs2_glock_queue_work (gl , 0 );
2210
2210
}
2211
2211
spin_unlock (& gl -> gl_lockref .lock );
0 commit comments