qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2] rfifolock: no need to get thread identifier


From: Denis V. Lunev
Subject: Re: [Qemu-devel] [PATCH v2] rfifolock: no need to get thread identifier when nesting
Date: Tue, 10 May 2016 13:25:13 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1

On 05/10/2016 12:59 PM, Changlong Xie wrote:
Signed-off-by: Changlong Xie <address@hidden>
---
  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 <address@hidden>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]