|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] slightly simplify SCHEDOP_remote_shutdown handling
commit d89d78912179fb6591f43abff879f43e37ba4654
Author: Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jun 18 14:55:18 2015 +0200
Commit: Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jun 18 14:55:18 2015 +0200
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>
Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Acked-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
---
xen/common/schedule.c | 10 ++--------
1 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/xen/common/schedule.c b/xen/common/schedule.c
index 3325ccd..ecf1545 100644
--- a/xen/common/schedule.c
+++ b/xen/common/schedule.c
@@ -970,16 +970,10 @@ ret_t do_sched_op(int cmd, XEN_GUEST_HANDLE_PARAM(void)
arg)
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;
}
--
generated by git-patchbot for /home/xen/git/xen.git#master
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |