mnt_unhold_writers(9)
π mnt_unhold_writers β the Kernel API Manual page, bestie edition π
okay so you're in the Kernel API Manual (section 9, kernel glamour section) and the page is mnt_unhold_writers. Yes it's a mouthful. Yes it's iconic. Let's go. β¨
πΈ NAME πΈ
mnt_unhold_writers β stop preventing write access to the given mount
Like, you were gatekeeping writes on a mount and now you're done gatekeeping. Character development. π
π¦ SYNOPSIS π¦
void mnt_unhold_writers (struct mount *mnt );
No return value, no drama, a void king. π
π ARGUMENTS π
mntβ the mnt you're gonna stop preventing write access to. That's the whole thing. That's the assignment. π«Ά
β¨ DESCRIPTION β¨
So basically: stop preventing write access to mnt, which lets callers gain write access to mnt again. Writes are back on the menu, bestie. π₯
β οΈ Real talk though β this function can only be called after a call to mnt_hold_writers. You can't just roll up and unhold something you never held. That's not how any of this works, and the kernel will not be nice about it. π
π§ CONTEXT π§
This function expects to be in the same mount_locked_reader scope as the matching mnt_hold_writers. Same scope, same vibe, matched set. If your hold lives over there and your unhold lives over here, you have a problem, not a solution. π
π SEE ALSO π
Kernel file ./fs/namespace.c β and honestly, the whole friend group:
mnt_get_write_access(9)mnt_want_write(9)mnt_get_write_access_file(9)mnt_want_write_file(9)mnt_put_write_access(9)mnt_drop_write(9)mnt_hold_writers(9)__lookup_mnt(9)lookup_mnt(9)attach_mnt(9)vfs_create_mount(9)path_is_mountpoint(9)may_umount_tree(9)may_umount(9)clone_private_mount(9)attach_recursive_mnt(9)do_lock_mount(9)path_overmounted(9)can_move_mount_beneath(9)mnt_set_expiry(9)mnt_allow_writers(9)
Go read them all. Or don't. I'm not your mom, I'm your Unix bestie. π
mwah π β this has been the ./fs sources, October 2026 release, page mnt_unhold_writers(9). Now go unhold those writers, slay, and remember: hold first, unhold second. periodt. πΈ
π¦ 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