On 05/10/2016 12:59 PM, Changlong Xie wrote:
Signed-off-by: Changlong Xie <[email protected]> --- util/rfifolock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)diff --git a/util/rfifolock.c b/util/rfifolock.c index c22f5fe..084c2f0 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); }
Reviewed-by: Denis V. Lunev <[email protected]>
