request_demote(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… request_demote(9) β€” the request_demote page, bestie edition

okay so this is a page from the Kernel API Manual (yes, request_demote(9), the 9 is the manual section, slay) and it's literally all about handling a demote request. it's short, it's cute, and it's giving "I know exactly what I'm doing" energy. let's get into it πŸŽ€


✨ NAME ✨

request_demote β€” process a demote request πŸ¦‹

like, that's the whole job. it processes a demote request. periodt.


🌸 SYNOPSIS 🌸

void request_demote (struct gfs2_glock *gl , unsigned int state ,
       unsigned long delay , bool remote );

look at her. four params, returns nothing (void), absolutely not here to give you a value back. she's a doer, not a talker πŸ’…


🧚 ARGUMENTS 🧚

  • gl β€” the glock. yes. that glock. the struct gfs2_glock * one you just handed over 🫢
  • state β€” the state the caller wants us to change to. i.e. where they want to end up, and we're the ones making it happen ✨
  • delay β€” zero to demote immediately; otherwise pending demote. so like, 0 = no thoughts head empty go now, anything else = we're queuing this up for later ⏳
  • remote β€” true if this came from a different cluster node. so if it's true, bestie, this request literally travelled across the cluster to get here 🌈

πŸ‘‘ DESCRIPTION πŸ‘‘

okay so here's the tea πŸ“: in actual practise there are only two requests that we are going to see:

  • LM_ST_SHARED
  • LM_ST_UNLOCKED

that's it. those two. only those. "only two requests that we are going to see in actual practise" β€” direct quote, and honestly? iconic. we love a small, well-defined set of possibilities. no chaos, no surprises, just two states and vibes πŸ’€


πŸ”₯ SEE ALSO πŸ”₯

so this one lives in the Kernel file ./fs/gfs2/glock.c and honestly the whole friend group shows up here. roll call πŸ“‹:

like i said. the whole group chat. go read them, iykyk 😭


ngl the entire page is nine lines of facts and i respect that so much. no filler, no fluff, just glock demotion and a link dump. main character energy fr fr πŸ‘‘

and that's the whole page bestie!! πŸŽ€ source & version: ./fs/gfs2, dated October 2026, and the page itself is request_demote(9) β€” mwah, go demote something, love you, bye πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from