Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Tue, 2 Jul 2002 12:47:30 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Tue, 2 Jul 2002 12:47:29 -0400 Received: from s1.relay.oleane.net ([195.25.12.48]:27333 "HELO s1.relay.oleane.net") by vger.kernel.org with SMTP id ; Tue, 2 Jul 2002 12:47:29 -0400 From: Benjamin Herrenschmidt To: Werner Almesberger , Keith Owens Cc: Subject: Re: [OKS] Module removal Date: Tue, 2 Jul 2002 18:50:19 +0200 Message-Id: <20020702165019.29700@smtp.adsl.oleane.com> In-Reply-To: <20020702133658.I2295@almesberger.net> References: <20020702133658.I2295@almesberger.net> X-Mailer: CTM PowerMail 3.1.2 F MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 910 Lines: 24 >> It's not really just the module information. If I can, say, get >> callbacks from something even after I unregister, I may well >> have destroyed the data I need to process the callbacks, and >> oops or worse. > >Actually, if module exit synchronizes properly, even the >return-after-removal case shouldn't exist, because we'd simply >wait for this call to return. > >Hmm, interesting. Did I just make the whole problem go away, >or is travel fatigue playing tricks on my brain ? :-) That was one of the solutions proposed by Rusty, that is basically waiting for all CPUs to have scheduled upon exit from module_exit and before doing the actual removal. Ben. - 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/