[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH 1/2] uml: s/virDomainObjListFindByID/virDomainObjListFindByUUID/



On Fri, Apr 24, 2015 at 10:24:14 +0200, Michal Privoznik wrote:
> ListFindByID() still requires to step through items in the hash table
> (in the worst case scenario through all of them), lock each one and
> compare whether we've found what we're looking for. This is suboptimal
> as locking a domain object means we need to wait for the current API
> running over the object to finish.
> 
> Unfortunately, we can't drop the function completely because we have
> this public API virDomainLookupByID which we can't drop.
> 
> Signed-off-by: Michal Privoznik <mprivozn redhat com>
> ---
>  src/uml/uml_driver.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 

ACK,

Peter

Attachment: signature.asc
Description: Digital signature


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]