Searched hist:"7 c743c89a068dd36b60dab9a485e9b5195c8e1cc" (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/dev/xen/xenstore/ |
H A D | xenstore.c | diff 7c743c89a068dd36b60dab9a485e9b5195c8e1cc Thu May 24 12:17:03 CEST 2018 Roger Pau Monné <royger@FreeBSD.org> xenstore: don't wait with the PCATCH flag
Due to the current synchronous xenstore implementation in FreeBSD, we cannot return from xs_read_reply without reading a reply, or else the ring gets out of sync and the next request will read the previous reply and crash due to the type mismatch. A proper solution involves making use of the req_id field in the message and allowing multiple in-flight messages at the same time on the ring.
Remove the PCATCH flag so that signals don't interrupt the wait.
Tested by: Nathan Friess <nathan.friess@gmail.com> Sponsored by: Citrix Systems R&D
|