From owner-freebsd-arch@FreeBSD.ORG Mon Aug 11 04:58:51 2008 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 323DC1065671 for ; Mon, 11 Aug 2008 04:58:51 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outY.internet-mail-service.net (outy.internet-mail-service.net [216.240.47.248]) by mx1.freebsd.org (Postfix) with ESMTP id 13D0D8FC16 for ; Mon, 11 Aug 2008 04:58:50 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 9383D24E4; Sun, 10 Aug 2008 21:59:36 -0700 (PDT) Received: from julian-mac.elischer.org (localhost [127.0.0.1]) by idiom.com (Postfix) with ESMTP id DE6642D6109; Sun, 10 Aug 2008 21:58:49 -0700 (PDT) Message-ID: <489FC706.7050306@elischer.org> Date: Sun, 10 Aug 2008 21:58:46 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.16 (Macintosh/20080707) MIME-Version: 1.0 To: "M. Warner Losh" References: <200808091637.33820.jhb@freebsd.org> <20080810.165333.232928772.imp@bsdimp.com> In-Reply-To: <20080810.165333.232928772.imp@bsdimp.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: arch@FreeBSD.org, jhb@FreeBSD.org Subject: Re: Make MOD_QUIESCE a bit more useful.. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Aug 2008 04:58:51 -0000 M. Warner Losh wrote: > In message: <200808091637.33820.jhb@freebsd.org> > John Baldwin writes: > : So currently the MOD_QUIESCE event is posted to a module when unloading a kld > : so it can veto non-forced unloads. However, the current implementation in > : the kernel linker is to run through all the modules in a file, posting > : MOD_QUIESCE followed by MOD_UNLOAD on each module serially. Thus, if you > : have multiple modules in a single kld and one of the modules veto's an unload > : request via MOD_QUIESCE, you don't know as the module author if any of your > : modules were unloaded via MOD_UNLOAD or not. I think a better approach would > : be to change the kernel linker to invoke MOD_QUIESCE on all modules in a > : single pass first. If none of those fail (or it's a forced unload), then it > : can do a second pass invoking MOD_UNLOAD on all the modules. > > That sounds great to me. I'm a bit surprised it is implemented the > way you say... me++ > > Warner > _______________________________________________ > freebsd-arch@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-arch > To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"