]> xenbits.xensource.com Git - libvirt.git/commit
node_device_udev: Use a worker pool for processing events and emitting nodedev event
authorMarc Hartmayer <mhartmay@linux.ibm.com>
Tue, 23 Apr 2024 18:09:02 +0000 (20:09 +0200)
committerJonathon Jongsma <jjongsma@redhat.com>
Tue, 18 Jun 2024 14:00:32 +0000 (09:00 -0500)
commitb56458d443ba1d890d336535b5840252cbb9df4b
tree33c773300d0e13c942a757ea207bfd56b9dc2fe1
parent01ab7047e930766a1ee4dd269927d1937dc4c76b
node_device_udev: Use a worker pool for processing events and emitting nodedev event

Use a worker pool for processing the events (e.g. udev, mdevctl config changes)
and the initialization instead of a separate initThread and a mdevctl-thread.
This has the large advantage that we can leverage the job API and now this
thread pool is responsible to do all the "costly-work" and emitting the libvirt
nodedev events.

Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com>
Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
src/node_device/node_device_driver.c
src/node_device/node_device_udev.c
src/test/test_driver.c