gfs2_glock_async_wait(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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:


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