Skip to content

Commit

Permalink
rfifolock: no need to get thread identifier when nesting
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Changlong Xie authored and stefanhaRH committed May 16, 2016
1 parent 70f87e0 commit de3e15a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util/rfifolock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit de3e15a

Please sign in to comment.