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

Peter Krempa pkrempa at redhat.com
Fri Apr 24 09:15:18 UTC 2015

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 at redhat.com>
> ---
>  src/uml/uml_driver.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150424/515ce642/attachment-0001.sig>

More information about the libvir-list mailing list