drbd_try_rs_begin_io(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

hii bestie πŸ’– you're reading the Kernel API Manual entry for drbd_try_rs_begin_io(9), and it's a whole little vibe. it gets an extent in the resync LRU cache, and it does not sleep. no cap. πŸ’…


✨ NAME ✨

drbd_try_rs_begin_io β€” Gets an extent in the resync LRU cache, does not sleep. periodt 🌸

πŸ¦‹ SYNOPSIS πŸ¦‹

int drbd_try_rs_begin_io (struct drbd_peer_device *peer_device ,
       sector_t sector );

πŸŽ€ ARGUMENTS πŸŽ€

  • peer_device β€” DRBD device. like, the DRBD device we're working with 🫢
  • sector β€” the sector number. yep, that exact sector πŸ’«

πŸ’– DESCRIPTION πŸ’–

so here's the vibe: it gets an extent in the resync LRU cache, sets that extent to BME_NO_WRITES, and then tries to set it to BME_LOCKED. that's the little sequence, bestie. and yes, it does not sleep β€” no bedtime here 😴🚫

πŸ”₯ RETURN πŸ”₯

  • 0 upon success β€” slay βœ…
  • -EAGAIN if there is still application IO going on in this area β€” so if application IO is still happening there, you get -EAGAIN, periodt πŸ’€

πŸ‘‘ SEE ALSO πŸ‘‘

Kernel file ./drivers/block/drbd/drbd_actlog.c β€” go peek if you're nosy πŸ‘€


k bye bestie πŸ’– this page came from ./drivers/block/drbd, dated October 2026, and it's the manual entry for drbd_try_rs_begin_io(9). mwah πŸ’‹

πŸ“¦ where this page comes from