summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorChanglong Xie <xiecl.fnst@cn.fujitsu.com>2016-05-10 17:59:08 +0800
committerStefan Hajnoczi <stefanha@redhat.com>2016-05-16 15:29:44 -0700
commitde3e15a705cbb4b54b2a749f8d5131c9f1666fb3 (patch)
treeea5ea2729bd3f0bced6c13ba484a13df071f678e /util
parent70f87e0f0aa04f764dabaeb3ed71ff195748076a (diff)
downloadqemu-de3e15a705cbb4b54b2a749f8d5131c9f1666fb3.tar.gz
rfifolock: no need to get thread identifier when nesting
Signed-off-by: Changlong Xie <xiecl.fnst@cn.fujitsu.com> Reviewed-by: Denis V. Lunev <den@openvz.org> Message-id: 1462874348-32396-1-git-send-email-xiecl.fnst@cn.fujitsu.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'util')
-rw-r--r--util/rfifolock.c2
1 files changed, 1 insertions, 1 deletions
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);
}