[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH] slightly simplify SCHEDOP_remote_shutdown handling
There's no need for two exit paths each using rcu_unlock_domain() on its own here. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -970,16 +970,10 @@ ret_t do_sched_op(int cmd, XEN_GUEST_HAN break; ret = xsm_schedop_shutdown(XSM_DM_PRIV, current->domain, d); - if ( ret ) - { - rcu_unlock_domain(d); - return ret; - } - - domain_shutdown(d, (u8)sched_remote_shutdown.reason); + if ( likely(!ret) ) + domain_shutdown(d, sched_remote_shutdown.reason); rcu_unlock_domain(d); - ret = 0; break; } Attachment:
simplify-schedop-remote-shutdown.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |