]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
xenstore: remove the suspend sx lock
authorroyger <royger@FreeBSD.org>
Thu, 24 May 2018 10:16:11 +0000 (10:16 +0000)
committerroyger <royger@FreeBSD.org>
Thu, 24 May 2018 10:16:11 +0000 (10:16 +0000)
commitcb4ecacee9466d6932cd7fcf6bfad62391a34b24
tree86afd9201b9548752d5297d3bd76784ba0516f18
parente0e3ab28e5f9bd9427a01c30ad34e3d75554f024
xenstore: remove the suspend sx lock

There's no need to prevent suspend while doing xenstore transactions,
callers of transactions are supposed to be prepared for a transaction
to fail.

This fixes a bug that could be triggered from the xenstore user-space
device, since starting a transaction from user-space would result in
returning there with a sx lock held, that causes a WITNESS check to
trigger.

Tested by:      Nathan Friess <nathan.friess@gmail.com>
Sponsored by:   Citrix Systems R&D
sys/dev/xen/xenstore/xenstore.c