gfs2_glock_async_wait(9)
π gfs2_glock_async_wait(9)
okay so bestie, welcome to the Kernel API Manual, section 9 β yes we're in the kernel internals girlie hours, page name is gfs2_glock_async_wait and it's literally all about waiting on a whole squad of glocks at once. grab a strawberry π and let's go.
β¨ NAME β¨
gfs2_glock_async_wait β wait on multiple asynchronous glock acquisitions. plural. a whole group chat of glocks. π
π¦ SYNOPSIS π¦
int gfs2_glock_async_wait (unsigned int num_gh , struct gfs2_holder *ghs
, unsigned int retries );
not a single thing more, not a single thing less π
πΈ ARGUMENTS πΈ
num_ghβ the number of holders in the array. like, how many besties are we waiting on πghsβ the glock holder array. this is the group chat itself.retriesβ number of retries attempted so far. how many times you've already been like "okay one more time π"
π RETURN π
0β success, meaning all glocks have been granted and are held. slay. every single one. periodt β¨-ESTALEβ the request timed out, meaning all glocks were released, and the caller should retry the operation. not a fail exactly, just... a "try again babe" energy π
ngl, if you get -ESTALE everything's already been let go, so don't go touching those glocks like they're still yours β they are NOT π
π SEE ALSO π
the whole extended friend group, iykyk β all from Kernel file ./fs/gfs2/glock.c:
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)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)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)
that's the whole page bestie, go read the glock ones next, they're lowkey iconic π«Ά
mwah π β this little number lives in ./fs/gfs2, dated October 2026, from the Kernel API Manual (section 9, obvi). take care of her, she's doing her best β¨
π¦ 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