evtchn: don't call Xen consumer callback with per-channel lock held
authorJan Beulich <jbeulich@suse.com>
Mon, 11 Jan 2021 13:53:02 +0000 (14:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 11 Jan 2021 13:53:02 +0000 (14:53 +0100)
commit1376ef90d31c971df79de331911bf861a9a11a44
tree4d494b56eb2b91c2f0d745b67b093a5471b8fcb1
parent2039ebfd59eef01176f5d26e83654f8bfbe0a949
evtchn: don't call Xen consumer callback with per-channel lock held

While there don't look to be any problems with this right now, the lock
order implications from holding the lock can be very difficult to follow
(and may be easy to violate unknowingly). The present callbacks don't
(and no such callback should) have any need for the lock to be held.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Julien Grall <jgrall@amazon.com>
xen/common/event_channel.c