|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 2/3] net: introduce lock to protect NetClientState's send_queue |
Date: | Mon, 04 Mar 2013 16:04:37 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 |
Il 04/03/2013 15:49, Stefan Hajnoczi ha scritto: > > Use nc->transfer_lock to protect the nc->peer->send_queue. All of the > > Please use consistent names: the lock protects ->send_queue so it's best > called send_queue_lock or send_lock. 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. nc->peer shouldn't need a lock. It is immutable, isn't it? Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |