summaryrefslogtreecommitdiffstats
path: root/util/rfifolock.c
diff options
context:
space:
mode:
authorChanglong Xie2016-05-10 11:59:08 +0200
committerStefan Hajnoczi2016-05-17 00:29:44 +0200
commitde3e15a705cbb4b54b2a749f8d5131c9f1666fb3 (patch)
treeea5ea2729bd3f0bced6c13ba484a13df071f678e /util/rfifolock.c
parentMerge remote-tracking branch 'remotes/kraxel/tags/pull-ui-20160513-1' into st... (diff)
downloadqemu-de3e15a705cbb4b54b2a749f8d5131c9f1666fb3.tar.gz
qemu-de3e15a705cbb4b54b2a749f8d5131c9f1666fb3.tar.xz
qemu-de3e15a705cbb4b54b2a749f8d5131c9f1666fb3.zip
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/rfifolock.c')
-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);
}