Searched hist:f79cdf2998fa9da060478faddf16bd4eb160c97e (Results 1 – 1 of 1) sorted by relevance
/freebsd/sys/dev/xen/xenstore/ |
H A D | xenstore_dev.c | diff f79cdf2998fa9da060478faddf16bd4eb160c97e Mon Feb 16 10:53:43 CET 2015 Roger Pau Monné <royger@FreeBSD.org> xen: fix xenstore dev
Xenstore user-space device has two problems currently: - It does not correctly handle concurrent clients, because it's storing each client data in dev->si_drv1. - It does not correctly free this data when the client closes the device.
In order to solve both of this issues store the per-client data using cdevpriv, which also comes with a hook in order to perform the necessary cleanup on device close.
While there also make the device eternal.
Sponsored by: Citrix Systems R&D Reported and Tested by: thompsa MFC after: 2 weeks
|