From mboxrd@z Thu Jan 1 00:00:00 1970 From: Daniel Walker Subject: Re: try_module_get and friends Date: Wed, 05 Mar 2008 13:15:02 -0800 Message-ID: <1204751702.17630.27.camel@localhost.localdomain> References: <1204608058.11912.3.camel@perihelion> <1204608506.11912.9.camel@perihelion> <1204661228.8244.15.camel@jcmlaptop> <1204745455.17630.8.camel@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: "Frank Ch. Eigler" , Jon Masters , linux-rt-users , Ingo Molnar , Thomas Gleixner To: Steven Rostedt Return-path: Received: from gateway-1237.mvista.com ([63.81.120.158]:57182 "EHLO gateway-1237.mvista.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756148AbYCEVPF (ORCPT ); Wed, 5 Mar 2008 16:15:05 -0500 In-Reply-To: Sender: linux-rt-users-owner@vger.kernel.org List-ID: On Wed, 2008-03-05 at 15:54 -0500, Steven Rostedt wrote: > Actually, we were simply thinking of calling an rcu_lock before checking > the handlers, and releasing the lock when all are done. Then before doing > the module unload, we do a rcu_sync. Note, no interrupt handler should > ever do a rcu_sync. There's already some smp synchronize inside free_irq, are you sure that's not already handling this for smp? For -rt we could just enable it for UP .. Daniel