drbd_send_state(9)
π drbd_send_state(9) π
hey bestie, welcome to the Kernel API Manual β todayβs main character is drbd_send_state(9), and itβs literally all about sending the new state to the peer after a state change. π¦
π NAME π
drbd_send_state β after a state change, sends the new state to the peer. periodt. β¨
β¨ SYNOPSIS β¨
int drbd_send_state (struct drbd_peer_device *peer_device , union
drbd_state state );
π ARGUMENTS π
peer_deviceβ DRBD peer device. π«Άstateβ the state to send; not necessarily the current state. π
π¦ DESCRIPTION π¦
okay so hereβs the tea: each state change queues an "after_state_ch" work, and that work will eventually send the resulting new state to the peer. π
if more state changes happen between queuing and processing of the after_state_ch work, we still want to send each intermediary state in the order it occurred. the timeline stays intact, no cap. π°οΈβ¨
π SEE ALSO π
Kernel file ./drivers/block/drbd/drbd_main.c, plus these lil icons:
tl_release(9)_tl_restart(9)tl_clear(9)tl_abort_disk_io(9)drbd_thread_current_set_cpu(9)drbd_send_current_state(9)_drbd_send_ack(9)drbd_send_ack(9)drbd_md_sync(9)drbd_md_read(9)drbd_md_mark_dirty(9)drbd_uuid_new_current(9)drbd_bmio_set_n_write(9)drbd_bmio_clear_n_write(9)drbd_queue_bitmap_io(9)drbd_bitmap_io(9)drbd_wait_misc(9)
xoxo, your kernel bestie π β straight from ./drivers/block/drbd, October 2026. π
π¦ 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