From de3e15a705cbb4b54b2a749f8d5131c9f1666fb3 Mon Sep 17 00:00:00 2001 From: Changlong Xie Date: Tue, 10 May 2016 17:59:08 +0800 Subject: rfifolock: no need to get thread identifier when nesting Signed-off-by: Changlong Xie Reviewed-by: Denis V. Lunev Message-id: 1462874348-32396-1-git-send-email-xiecl.fnst@cn.fujitsu.com Signed-off-by: Stefan Hajnoczi --- util/rfifolock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/rfifolock.c b/util/rfifolock.c index c22f5feeee..084c2f0ea1 100644 --- a/util/rfifolock.c +++ b/util/rfifolock.c @@ -58,9 +58,9 @@ void rfifolock_lock(RFifoLock *r) } qemu_cond_wait(&r->cond, &r->lock); } + qemu_thread_get_self(&r->owner_thread); } - qemu_thread_get_self(&r->owner_thread); r->nesting++; qemu_mutex_unlock(&r->lock); } -- cgit v1.2.3