Messages in this thread |  | | | Date | Thu, 14 Feb 2008 01:51:01 -0500 | | From | Christoph Hellwig <> | | Subject | Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash |
On Wed, Feb 13, 2008 at 11:03:45AM -0600, James Bottomley wrote: > > I don't understand please explain. > > What does a driver need to do if it needs a consistent shutdown retine? > > module or built in? unload or shutdown? > > It needs to register a reboot notifier, which gdth does.
Well, for crappy legacy driver that's the way, but it's not really recommended. As soon as a driver uses the proper driver models, e.g. gdth for pci using Jeff's pci hotplug patches it can just implement the ->shutdown method that is called before shutdown/kexec and can do the right thing.
|  |