mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
node_device_udev: Take lock if driver->privateData
is modified
Since @driver->privateData is modified take the lock. Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Jonathon Jongsma <jjongsma@redhat.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
This commit is contained in:
parent
c320c37917
commit
f51d729dd0
@ -2232,7 +2232,9 @@ mdevctlEventHandleCallback(GFileMonitor *monitor G_GNUC_UNUSED,
|
|||||||
* configuration change, try to coalesce these changes by waiting for the
|
* configuration change, try to coalesce these changes by waiting for the
|
||||||
* CHANGES_DONE_HINT event. As a fallback, add a timeout to trigger the
|
* CHANGES_DONE_HINT event. As a fallback, add a timeout to trigger the
|
||||||
* signal if that event never comes */
|
* signal if that event never comes */
|
||||||
scheduleMdevctlUpdate(priv, (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT));
|
VIR_WITH_OBJECT_LOCK_GUARD(priv) {
|
||||||
|
scheduleMdevctlUpdate(priv, (event_type == G_FILE_MONITOR_EVENT_CHANGES_DONE_HINT));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user