Anthony PERARD writes ("[PATCH v2 4/9] libxl: Add optimisation to ev_lock"):
> It will often be the case that the lock is free to grab. So we first
> try to grab it before we have to fork. Even though in this case the
> locks are grabbed in the wrong order in the lock hierarchy (ev_lock
> should be outside of CTX_LOCK), it is fine to try without blocking. If
> that failed, we will release CTX_LOCK and try to grab both lock again
> in the right order.
> 
> That optimisation is only enabled in releases (debug=n) so the more
> complicated code with fork is actually exercised.

Acked-by: Ian Jackson <ian.jack...@eu.citrix.com>

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to