|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 2/3] net: introduce lock to protect NetClientState's send_queue |
Date: | Tue, 05 Mar 2013 09:23:00 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
Il 05/03/2013 03:45, liu ping fan ha scritto: > > In fact, it's a bit strange to use nc->something_lock to lock something > > in nc->peer. Please add the lock to NetQueue and include/net/queue.h. > > The lock also servers as exclusion between NetClientState's sender and > remover. So if we apply lock on NetQueue, it can not achieve the > goal. Ok, but please document it. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |