From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhAgH-0008Jo-9m for qemu-devel@nongnu.org; Mon, 15 Feb 2010 18:48:45 -0500 Received: from [199.232.76.173] (port=41905 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhAgG-0008JS-Te for qemu-devel@nongnu.org; Mon, 15 Feb 2010 18:48:44 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NhAgF-0003dC-QT for qemu-devel@nongnu.org; Mon, 15 Feb 2010 18:48:44 -0500 Received: from ey-out-1920.google.com ([74.125.78.145]:12120) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NhAgF-0003d0-Gb for qemu-devel@nongnu.org; Mon, 15 Feb 2010 18:48:43 -0500 Received: by ey-out-1920.google.com with SMTP id 4so2307647eyg.14 for ; Mon, 15 Feb 2010 15:48:41 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <201002131133.43028.arnd@arndb.de> References: <201002131133.43028.arnd@arndb.de> Date: Mon, 15 Feb 2010 15:48:40 -0800 Message-ID: <9ae48b021002151548l79b8c5fdycc04a2f36fed1f09@mail.gmail.com> From: Ed Swierk Content-Type: text/plain; charset=ISO-8859-1 Subject: [Qemu-devel] Re: [PATCH 1/2] macvtap: rework object lifetime rules List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Arnd Bergmann Cc: "Michael S. Tsirkin" , netdev@vger.kernel.org, qemu-devel@nongnu.org, linux-kernel@vger.kernel.org, Patrick McHardy , Sridhar Samudrala On Sat, Feb 13, 2010 at 2:33 AM, Arnd Bergmann wrote: > The original macvtap code has a number of problems > resulting from the use of RCU for protecting the > access to struct macvtap_queue from open files. > > This includes > - need for GFP_ATOMIC allocations for skbs > - potential deadlocks when copy_*_user sleeps > - inability to work with vhost-net > > Changing the lifetime of macvtap_queue to always > depend on the open file solves all these. The > RCU reference simply moves one step down to > the reference on the macvlan_dev, which we > only need for nonblocking operations. > > Signed-off-by: Arnd Bergmann This works for me. Acked-by: Ed Swierk