Skip to content

Commit 3c69c43

Browse files
author
Andreas Gruenbacher
committed
gfs2: Rename sd_{ glock => kill }_wait
Rename sd_glock_wait to sd_kill_wait: we'll use it for other things related to "killing" a filesystem on unmount soon (kill_sb). Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 481f6e7 commit 3c69c43

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

fs/gfs2/glock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ void gfs2_glock_free(struct gfs2_glock *gl)
176176
wake_up_glock(gl);
177177
call_rcu(&gl->gl_rcu, gfs2_glock_dealloc);
178178
if (atomic_dec_and_test(&sdp->sd_glock_disposal))
179-
wake_up(&sdp->sd_glock_wait);
179+
wake_up(&sdp->sd_kill_wait);
180180
}
181181

182182
/**
@@ -1231,7 +1231,7 @@ int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number,
12311231
out_free:
12321232
gfs2_glock_dealloc(&gl->gl_rcu);
12331233
if (atomic_dec_and_test(&sdp->sd_glock_disposal))
1234-
wake_up(&sdp->sd_glock_wait);
1234+
wake_up(&sdp->sd_kill_wait);
12351235

12361236
out:
12371237
return ret;
@@ -2188,7 +2188,7 @@ void gfs2_gl_hash_clear(struct gfs2_sbd *sdp)
21882188
flush_workqueue(glock_workqueue);
21892189
glock_hash_walk(clear_glock, sdp);
21902190
flush_workqueue(glock_workqueue);
2191-
wait_event_timeout(sdp->sd_glock_wait,
2191+
wait_event_timeout(sdp->sd_kill_wait,
21922192
atomic_read(&sdp->sd_glock_disposal) == 0,
21932193
HZ * 600);
21942194
glock_hash_walk(dump_glock_func, sdp);

fs/gfs2/incore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ struct gfs2_sbd {
716716
struct gfs2_glock *sd_rename_gl;
717717
struct gfs2_glock *sd_freeze_gl;
718718
struct work_struct sd_freeze_work;
719-
wait_queue_head_t sd_glock_wait;
719+
wait_queue_head_t sd_kill_wait;
720720
wait_queue_head_t sd_async_glock_wait;
721721
atomic_t sd_glock_disposal;
722722
struct completion sd_locking_init;

fs/gfs2/ops_fstype.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ static struct gfs2_sbd *init_sbd(struct super_block *sb)
8787
set_bit(SDF_NOJOURNALID, &sdp->sd_flags);
8888
gfs2_tune_init(&sdp->sd_tune);
8989

90-
init_waitqueue_head(&sdp->sd_glock_wait);
90+
init_waitqueue_head(&sdp->sd_kill_wait);
9191
init_waitqueue_head(&sdp->sd_async_glock_wait);
9292
atomic_set(&sdp->sd_glock_disposal, 0);
9393
init_completion(&sdp->sd_locking_init);

0 commit comments

Comments
 (0)