Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756489AbZFHOAk (ORCPT ); Mon, 8 Jun 2009 10:00:40 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754633AbZFHOAa (ORCPT ); Mon, 8 Jun 2009 10:00:30 -0400 Received: from stinky.trash.net ([213.144.137.162]:36356 "EHLO stinky.trash.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752229AbZFHOA2 (ORCPT ); Mon, 8 Jun 2009 10:00:28 -0400 Message-ID: <4A2D197D.4060804@trash.net> Date: Mon, 08 Jun 2009 16:00:29 +0200 From: Patrick McHardy User-Agent: Mozilla-Thunderbird 2.0.0.19 (X11/20090103) MIME-Version: 1.0 To: Jesper Dangaard Brouer CC: "David S. Miller" , "Paul E. McKenney" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, urs.thuermann@volkswagen.de, oliver.hartkopp@volkswagen.de, wg@grandegger.com, vladislav.yasevich@hp.com, sri@us.ibm.com, linux-sctp@vger.kernel.org, Trond.Myklebust@netapp.com, linux-nfs@vger.kernel.org, netfilter-devel@vger.kernel.org Subject: Re: [PATCH 0/5] We must use rcu_barrier() on module unload References: <20090608130959.10052.54590.stgit@localhost> In-Reply-To: <20090608130959.10052.54590.stgit@localhost> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1001 Lines: 22 Jesper Dangaard Brouer wrote: > If an unloadable module uses RCU callbacks, it need to use > rcu_barrier() so that the module may be safely unloaded. > > While hacking on a netfilter module of my own, I learned the > importance of calling rcu_barrier() instead of only a > synchronize_rcu() on module unload (iif using any call_rcu() > callbacks). synchronize_rcu() does wait for a grace period to > elapse, but it does not wait for the callbacks to complete. > > ... > I have made a patch for each individual module, so objections can be > made on a per module basis. I have Cc'ed all of the patches to the > maintainers of each module (according to the MAINTAINERS file). Acked-by: Patrick McHardy for patches 1 and 2, good catch. -- 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/