gfs2_glock_put_eventually(9)
β¨ gfs2_glock_put_eventually β¨
okay so bestie, this is a page from the Kernel API Manual, and it's about one very specific little function in the kernel. it's short, it's sweet, and it's all about not deadlocking π«Ά
π SYNOPSIS π
void gfs2_glock_put_eventually (struct gfs2_glock *gl );
that's it. that's the whole signature. no cap, it takes exactly one argument and returns nothing (void), because it's a "just do the thing" kind of function π
π ARGUMENTS π
glβ the glock to put. that's the whole description, bestie, the original page keeps it that brief and honestly? iconic. it's thestruct gfs2_glock *you're handing over to be released π¦
πΈ DESCRIPTION πΈ
okay so here's the vibe check π§ when you're under memory pressure, this function triggers a deferred glock put β like, it schedules the put for later instead of doing it right now β and the reason is genuinely important: it makes sure we won't call into DLM and deadlock π periodt. that's the whole safety mechanism.
Otherwise (i.e. when you're not under memory pressure), it just puts the glock directly. simple as that. no drama, no deferral, just an immediate put β¨
ngl the deadlock thing is the main character here β DLM calls under memory pressure = bad news, and that's exactly what the deferred path is dodging π
β SEE ALSO β
- Kernel file
./fs/gfs2/super.cπ β this is where you'll find the goods gfs2_jindex_free(9)gfs2_make_fs_rw(9)gfs2_lock_fs_check_clean(9)gfs2_write_inode(9)gfs2_dirty_inode(9)gfs2_make_fs_ro(9)gfs2_put_super(9)gfs2_sync_fs(9)gfs2_freeze_super(9)gfs2_thaw_super(9)statfs_slow_fill(9)gfs2_statfs_slow(9)gfs2_statfs_i(9)gfs2_statfs(9)gfs2_drop_inode(9)gfs2_show_options(9)evict_should_delete(9)evict_unlinked_inode(9)gfs2_evict_inode(9)
like, that's a whole friend group of functions right there and they all live under ./fs/gfs2 π
that's the whole page, bestie β go forth and put your glocks responsibly π β¨
sign-off szn π: this lil page comes from ./fs/gfs2, dated October 2026, and it's part of the Kernel API Manual β gfs2_glock_put_eventually(9), obviously π mwah, slay, bye π¦
π¦ 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