Re: kldunload DIAGNOSTIC idea...

From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 07/21/04

  • Next message: Mark Murray: "[PATCH] Big cleanup job on memory device"
    To: "M. Warner Losh" <imp@bsdimp.com>
    Date: Wed, 21 Jul 2004 19:15:05 +0200
    
    

    In message <20040721.111045.88466992.imp@bsdimp.com>, "M. Warner Losh" writes:

    >We still ahve to wait for all threads with references to softc to
    >drain out before we unload the module. I see a small benefit to that,
    >but it seems that the requirements for softc are stronger than ifnet
    >and already cover it. The detach routine of the driver could easily
    >wait for the ifnet reference count to drop before returning for
    >network drivers (heck the if_detach call could wait all references are
    >gone, so that it isn't actually in the driver). Where it is stored
    >seems not to matter so much.

    I have not studied the ifnet scenario in details, so I won't argue
    about it.

    -- 
    Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
    phk@FreeBSD.ORG         | TCP/IP since RFC 956
    FreeBSD committer       | BSD since 4.3-tahoe    
    Never attribute to malice what can adequately be explained by incompetence.
    _______________________________________________
    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"
    

  • Next message: Mark Murray: "[PATCH] Big cleanup job on memory device"

    Relevant Pages

    • ether_ifdetach() races round 3(?)
      ... Maybe this will gives us a viable solution ... The reason we are having races is that once we call foo_stop, the driver ... solution to that is to have the ifnet code "officially" mark the driver down ...
      (freebsd-arch)
    • Re: kldunload DIAGNOSTIC idea...
      ... :>: there is that struct ifnet is embedded in the softc. ... :>encoded in the driver that doesn't seem that big a win. ... We can't unload the driver until we've exterminated all references to ...
      (freebsd-arch)
    • Re: kldunload DIAGNOSTIC idea...
      ... there is that struct ifnet is embedded in the softc. ... Why would a pointer to ifnet in the softc make this ... >encoded in the driver that doesn't seem that big a win. ...
      (freebsd-arch)
    • Re: kldunload DIAGNOSTIC idea...
      ... there is that struct ifnet is embedded in the softc. ... Why would a pointer to ifnet in the softc make this ... encoded in the driver that doesn't seem that big a win. ...
      (freebsd-arch)