]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: update mdevs from the mdevctl thread
authorJonathon Jongsma <jjongsma@redhat.com>
Thu, 6 Jul 2023 14:16:35 +0000 (09:16 -0500)
committerJonathon Jongsma <jjongsma@redhat.com>
Thu, 13 Jul 2023 14:43:45 +0000 (09:43 -0500)
commit14026db9b0e25739ea30685bd643ff23aca30588
treee406cf1efb87d74d3f8cbda900d18996442bba4c
parent9b7fadc5dc33b85b597c95d944dc23c02c29c29f
nodedev: update mdevs from the mdevctl thread

Rather than directly executing mdevctl from the udev event thread when
we determine that we need to re-query, schedule the mdevctl thread to
run. This also helps to coalesce multiple back-to-back updates into a
single one when there are multiple updates in a row or at startup when a
host has a very large number of mdevs.

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