lock_duplicate_pbn(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… lock_duplicate_pbn(9) β€” the lock_duplicate_pbn(9) kernel API manual, but make it make sense

okay so bestie, welcome to the lock_duplicate_pbn(9) glow-up ✨ this is the section 9 kernel API page, and we're gonna get you comfy with it, no cap.


🌸 NAME 🌸

lock_duplicate_pbn β€” grab a read lock on the PBN of the block that's holding your candidate duplicate data (could be compressed, could be not, either way we're locking it πŸ’–).


πŸŽ€ SYNOPSIS πŸŽ€

void lock_duplicate_pbn (struct vdo_completion *completion );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • completion β€” the completion of the data_vio that's out here trying to acquire the physical block lock on behalf of its hash lock. like, it's doing the lock-acquiring errand for the hash lock, that's the whole vibe 🫢

✨ DESCRIPTION ✨

so here's the tea β˜• β€” if the PBN is already locked for writing, the lock attempt gets abandoned, and is_duplicate is cleared before calling back. periodt, that's just how it goes.

also important: this continuation is launched from start_locking, and it calls back to finish_locking on the hash zone thread 🧚

ngl this is one of those tiny functions that's lowkey load-bearing β€” remember the abandon path, bestie, or the callback's gonna catch you off guard 😭

πŸ”₯ SEE ALSO πŸ”₯

that's a lot of links and honestly? iconic. go read them, iykyk πŸ‘‘


πŸŽ€ ok that's the whole page, bestie! this lil gem lives in ./drivers/md/dm-vdo and it's dated October 2026 β€” so mark your calendar, screenshot it, whatever you gotta do πŸ’œ slay, and happy locking!! πŸ¦‹πŸ’–

πŸ“¦ where this page comes from