tl_clear(9)
πΈ tl_clear(9) β the kernel API manual, but make it a group chat πΈ
okay bestie, so this is tl_clear from the kernel API manual (tl_clear(9), section 9, kernel land β¨). sit down, hydrate, and let me tell you about the one function that cleans up the TL when everything goes sideways π
π NAME π
tl_clear β literally clears, like, all the requests and all the &struct drbd_tl_epoch objects out of the TL. all of them. gone. icon behavior fr π
β¨ SYNOPSIS β¨
void tl_clear (struct drbd_connection *connection );
yeah she takes one thing and returns nothing, void, no notes, no drama π¦
π«Ά ARGUMENTS π«Ά
connectionβ DRBD connection. that's the whole vibe. that's the argument π§
π₯ DESCRIPTION π₯
so the way this works is: this gets called after the connection to the peer was lost π like, the link is gone, it's over, and this function is the cleanup crew that shows up after.
the storage covered by the requests on the transfer gets marked as out of sync β yes bestie, all that in-flight stuff is now sus and we're flagging it π©
and where does it get called from, you ask? the receiver thread and the worker thread. two threads, one function, main character energy honestly π
π¦ SEE ALSO π¦
all the siblings, the whole friend group, no cap:
- Kernel file
./drivers/block/drbd/drbd_main.c tl_release(9)_tl_restart(9)tl_abort_disk_io(9)drbd_thread_current_set_cpu(9)drbd_send_current_state(9)drbd_send_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)
like, read them, they're all in the ./drivers/block/drbd directory, iykyk π
k bye bestie, love you, go mark your storage as out of sync responsibly π
this page came from./drivers/block/drbd, dated October 2026, and the footer saystl_clear(9)β 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