]> xenbits.xensource.com Git - xen.git/commit
evtchn: defer freeing struct evtchn's until evtchn_destroy_final()
authorDavid Vrabel <david.vrabel@citrix.com>
Mon, 22 Jun 2015 09:38:01 +0000 (11:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 22 Jun 2015 09:38:01 +0000 (11:38 +0200)
commita753f0e53ff973a8a066e86c1cb3d6dd5c68d59f
tree979cebccff84b4c7b1f8f397823e5f459da57bec
parentb399386bcdb9d458f5647476a06fe86f5968d87e
evtchn: defer freeing struct evtchn's until evtchn_destroy_final()

notify_via_xen_event_channel() and free_xen_event_channel() had to
check if the domain was dying because they may be called while the
domain is being destroyed and the struct evtchn's are being freed.

By deferring the freeing of the struct evtchn's until all references
to the domain are dropped, these functions can rely on the channel
state being present and valid.

Signed-off-by: David Vrabel <david.vrabel@citrix.com>
xen/common/event_channel.c