All of lore.kernel.org
 help / color / mirror / Atom feed
* [Drbd-dev] drbd threads and workqueues: For what is each responsible?
@ 2016-09-25 23:47 Eric Wheeler
  2016-09-26 11:58 ` Lars Ellenberg
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Wheeler @ 2016-09-25 23:47 UTC (permalink / raw)
  To: drbd-dev

Hello all,

Would someone kindly point me at documentation or help me summarize the 
kernel thread and workqueues used by each DRBD resource?

These are the ones I've found, please correct or add to my annotations as 
necessary to get a better understanding of the internal data flow:

drbd_submit (workqueue, device->submit.wq):
  The workqueue that handles new read/write requests from the block layer, 
  updates the AL as necessary, sends IO to the peer (or remote-reads if 
  diskless).  Does this thread write blocklayer-submitted IO to the 
  backing device, too, or just metadata writes?


drbd_receiver (thread, connection->receiver):
  The connection handling thread.  Does this thread do anything besides 
  make sure the connection is up and handle cleanup on disconnect?
  
  It looks like drbd_submit_peer_request is called several times from 
  drbd_receiver.c, but is any disk IO performed by this thread?


drbd_worker (thread, connection->worker):
  The thread that does drbd work which is not directly related to IO 
  passed in by the block layer; action based on the work bits from 
  device->flags such as:
	do_md_sync, update_on_disk_bitmap, go_diskless, drbd_ldev_destroy, do_start_resync 
  Do metadata updates happen through this thread via 
  do_md_sync/update_on_disk_bitmap, or are they passed off to another 
  thread for writes?  Is any blocklayer-submitted IO submitted by this 
  thread?


drbd_ack_receiver (thread, connection->ack_receiver):
  Thread that receives all ACK types from the peer node.  
  Does this thread perform any disk IO?  What kind?


drbd_ack_sender (workqueue, connection->ack_sender):
  Thread that sends ACKs to the peer node.
  Does this thread perform any disk IO?  What kind?

Thank you for your help!
  

--
Eric Wheeler

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-03  9:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-25 23:47 [Drbd-dev] drbd threads and workqueues: For what is each responsible? Eric Wheeler
2016-09-26 11:58 ` Lars Ellenberg
2016-09-26 19:34   ` Eric Wheeler
2016-09-27 10:41     ` Lars Ellenberg
2016-09-29 22:34       ` Eric Wheeler
2016-10-03  9:52       ` Lars Ellenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.