Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759430AbZKFQaH (ORCPT ); Fri, 6 Nov 2009 11:30:07 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757262AbZKFQaH (ORCPT ); Fri, 6 Nov 2009 11:30:07 -0500 Received: from e4.ny.us.ibm.com ([32.97.182.144]:39102 "EHLO e4.ny.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756223AbZKFQaF (ORCPT ); Fri, 6 Nov 2009 11:30:05 -0500 Date: Fri, 6 Nov 2009 08:30:07 -0800 From: "Paul E. McKenney" To: Rusty Russell Cc: "Michael S. Tsirkin" , Gregory Haskins , Eric Dumazet , netdev@vger.kernel.org, virtualization@lists.linux-foundation.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, mingo@elte.hu, linux-mm@kvack.org, akpm@linux-foundation.org, hpa@zytor.com, s.hetze@linux-ag.com Subject: Re: [PATCHv7 3/3] vhost_net: a kernel-level virtio server Message-ID: <20091106163007.GC6746@linux.vnet.ibm.com> Reply-To: paulmck@linux.vnet.ibm.com References: <20091104115729.GD8398@redhat.com> <20091104172542.GC6736@linux.vnet.ibm.com> <200911061531.20299.rusty@rustcorp.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200911061531.20299.rusty@rustcorp.com.au> User-Agent: Mutt/1.5.15+20070412 (2007-04-11) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1232 Lines: 29 On Fri, Nov 06, 2009 at 03:31:20PM +1030, Rusty Russell wrote: > On Thu, 5 Nov 2009 03:55:42 am Paul E. McKenney wrote: > > On Wed, Nov 04, 2009 at 01:57:29PM +0200, Michael S. Tsirkin wrote: > > > Can you ack this usage please? > > > > I thought I had done so in my paragraph above, but if you would like > > something a bit more formal... > > > > That's great guys. And yes, this is a kind of read-copy-update. And no, > there's nothing wrong with it. > > But it's still nasty to use half an API. If it were a few places I would > have open-coded it with a comment, or wrapped it. As it is, I don't think > that would be a win. So would it help to have a rcu_read_lock_workqueue() and rcu_read_unlock_workqueue() that checked nesting and whether they were actually running in the context of a workqueue item? Or did you have something else in mind? Or am I misjudging the level of sarcasm in your reply? ;-) Thanx, Paul -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/