domctl: improve locking during domain destruction
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Dec 2017 10:17:19 +0000 (11:17 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Dec 2017 10:17:19 +0000 (11:17 +0100)
commit228ab9992ffb1d8f9d2475f2581e68b2913acb88
tree09df8782f8b3b219c9f9ac1052580ae0d3c4550e
parent6046789dccab0c4eca836e8291d371871154289e
domctl: improve locking during domain destruction

There is no need to hold the global domctl lock across domain_kill() -
the domain lock is fully sufficient here, and parallel cleanup after
multiple domains performs quite a bit better this way.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/domain.c
xen/common/domctl.c