gfs2_should_freeze(9)
π gfs2_should_freeze(9) β a Kernel API Manual moment
okay so bestie, welcome to the Kernel API Manual page for gfs2_should_freeze(9). yes we're in the kernel, yes we're being cute about it, and yes it's still very serious business. β¨
πΈ NAME πΈ
gfs2_should_freeze β figure out if a glock should be frozen. that's it, that's the whole vibe check π§
β¨ SYNOPSIS β¨
int gfs2_should_freeze (const struct gfs2_glock *gl );
π ARGUMENTS π
glβ the glock in question π like, the glock we're all here to gossip about.
π¦ DESCRIPTION π¦
so here's the tea β: glocks do NOT get frozen if any of these three little situations is happening. read them carefully bestie, there's only three:
- (a) the result of the dlm operation is an error π
- (b) the locking operation was an unlock operation π
- (c) there is a
"recover"flagged request anywhere in the queue π β anywhere!! not just up front, anywhere.
if none of those pop up, then yeah, freezing is on the table. slay.
ngl the "anywhere in the queue" part is the one people forget, so likeβ¦ don't forget it. π«Ά
π RETURN π
1β freezing should occur β0β otherwise π
π SEE ALSO π
kernel file ./fs/gfs2/glock.c has the whole friend group, and honestly they're all icons:
wake_up_glock(9)gfs2_glock_hold(9)gfs2_glock_put(9)may_grant(9)do_error(9)find_first_holder(9)do_promote(9)find_first_waiter(9)find_last_waiter(9)state_change(9)finish_xmote(9)do_xmote(9)run_queue(9)glock_set_object(9)glock_clear_object(9)gfs2_glock_get(9)__gfs2_holder_init(9)gfs2_holder_reinit(9)gfs2_holder_uninit(9)gfs2_glock_holder_ready(9)gfs2_glock_wait(9)gfs2_glock_async_wait(9)request_demote(9)add_to_queue(9)gfs2_glock_nq(9)gfs2_glock_poll(9)gfs2_glock_dq(9)gfs2_glock_dq_uninit(9)gfs2_glock_nq_num(9)glock_compare(9)nq_m_sync(9)gfs2_glock_nq_m(9)gfs2_glock_dq_m(9)gfs2_glock_complete(9)glock_hash_walk(9)thaw_glock(9)gfs2_glock_thaw(9)gfs2_wait_glocks(9)dump_holder(9)gfs2_dump_glock(9)
likeβ¦ forty whole functions. ate and left no crumbs ππ
and that's the whole page bestie!! π this little baddie lives in ./fs/gfs2 and was dated October 2026, filed under gfs2_should_freeze(9) β mwah, go freeze some glocks (or don't, per the rules above) ππ§ββοΈ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms