gfs2_glock_complete(9)
π gfs2_glock_complete β the Kernel API Manual, but make it make sense
okay so bestie, welcome to the gfs2_glock_complete(9) page from the Kernel API Manual β yes that's the actual manual name, and yes we're absolutely getting into it π«Ά
β¨ NAME β¨
gfs2_glock_complete β the callback that the locking layer calls back into. it's giving "you rang?" energy, but for glocks π
πΈ SYNOPSIS πΈ
void gfs2_glock_complete (struct gfs2_glock *gl , int ret );
that's the whole signature, no cap. void in, nothing out π
π ARGUMENTS π
glβ a pointer to the glock. like, the glock itself. the main character πretβ the return value from the dlm. that's it, that's the whole vibe check π
π¦ DESCRIPTION π¦
okay so here's the tea π: the gl_reply field lives under the gl_lockref.lock lock, and because it's locked up all safe and cozy like that, it is totally fine to use a bitfield that's shared with other glock state fields. so you can share that bitfield, bestie β the lock has your back. no chaos, no tears, periodt β¨
lowkey the whole point: the locking is what makes the bitfield sharing okay. don't go sharing bitfields without the lock, okay? that's not the move π
π₯ SEE ALSO π₯
the whole friend group, fr fr β the Kernel file ./fs/gfs2/glock.c and everyone in it π:
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_should_freeze(9)glock_hash_walk(9)thaw_glock(9)gfs2_glock_thaw(9)gfs2_wait_glocks(9)dump_holder(9)gfs2_dump_glock(9)
like, that's the entire group chat and everyone ate π
and that's the page bestie!! π§ this one's filed under <pink>./fs/gfs2</pink> and dated <purple>October 2026</purple> β go read the other 40 manpages, iykyk ππ
π¦ 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