Re: [PATCH] call drv->shutdown at rmmod

From: Christoph Hellwig (hch_at_infradead.org)
Date: 08/14/03

  • Next message: George Anzinger: "Re: Ingo Molnar and Con Kolivas 2.6 scheduler patches"
    Date:	Thu, 14 Aug 2003 08:54:43 +0100
    To: "Eric W. Biederman" <ebiederm@xmission.com>
    
    

    On Thu, Aug 14, 2003 at 01:06:45AM -0600, Eric W. Biederman wrote:
    >
    > At the kexec BOF at OSDL there was some discussion on calling the
    > device shutdown method at module remove time, in addition to calling
    > it during reboot. The driver was the observation that the primary
    > source of problems in booting linux from linux are drivers with bad
    > or missing drv->shutdown() routines. The hope is this will increase
    > the testing so people can get it right and kexec can become more
    > useful. In addition to making normal reboots more reliable.
    >
    > The following patch is an implementation of that idea it calls drv->shutdown()
    > before calling drv->remove(). If drv->shutdown() is implemented.

    Sounds really confusing. And having shutdown maybe called before remove
    but not always sounds like a design mistake.

    Why do we have shutdown at all? Can't we just call ->remove on shutdown
    so the device always get's into proper unitialized state on shutdown, too?

    -
    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/


  • Next message: George Anzinger: "Re: Ingo Molnar and Con Kolivas 2.6 scheduler patches"

    Relevant Pages

    • Re: [PATCH] call drv->shutdown at rmmod
      ... |>> At the kexec BOF at OSDL there was some discussion on calling the ... |>> device shutdown method at module remove time, in addition to calling ... The driver was the observation that the primary ... |> whether or not to call shutdown for that particular device. ...
      (Linux-Kernel)
    • Re: How do I kill or break out of a synchronous Socket.Accept() ca
      ... I've tried calling both Closeand/or Shutdown(). ... Socket doesn't have a Dispose(), or I would have tried that too. ...
      (microsoft.public.dotnet.general)
    • Re: Thread and desktop
      ... Calling Shell_NotifyIconfrom a thread that has ... AFAIK shells are local to desktop (because windows and hooks are) ... Do all apps across all ... To tell the truth I forgot, but AFAIR everyone get notified (shutdown ...
      (microsoft.public.win32.programmer.kernel)
    • NullReferenceException after __crt_dll_terminate
      ... My managed code calls unmanaded DLL. ... calling __crt_dll_terminate before shutdown of my ... pointer to unmanaged class. ...
      (microsoft.public.dotnet.framework.interop)