Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Boaz Harrosh
Date: Wednesday, February 13, 2008 - 9:33 am

On Wed, Feb 13 2008 at 17:54 +0200, Boaz Harrosh <bharrosh@panasas.com> wrote:

The gdth driver would do a register_reboot_notifier(&gdth_notifier);
to a gdth_halt() function, which would then redo half of what gdth_exit
does, and wrongly so, and crash.  

Are we guaranteed in todays kernel that modules .exit function be called
on an halt or reboot? If so then there is no need for duplications and
the gdth_halt() should go.

Submitted a patch that replaces the previous one I submitted with a deeper
fix. 
	[PATCH] gdth: bugfix for the at-exit problems

If you ask me this all gdth_flush() is a crackup. sd and scsi-ml are doing 
scsi FLUSH commands when ever is needed. The controller as no business caching
data in memory longer then what is stated in standard. Raid controller or no raid
controller. Virtual or not virtual device. Data on Plate means data on plate.
What if there is a power outage? what the driver can do then?

Boaz
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[BUG?] GDTH driver not working after upgrade to 2.6.24, Sven Köhler, (Wed Jan 30, 12:47 pm)
Re: [BUG?] GDTH driver not working after upgrade to 2.6.24, Jan Engelhardt, (Thu Jan 31, 9:39 am)
[BUGFIXES 0/2] gdth: fix 2.6.24 driver breakage , Boaz Harrosh, (Tue Feb 12, 10:30 am)
[BUGFIX 1/2] gdth: scan for scsi devices, Boaz Harrosh, (Tue Feb 12, 10:35 am)
[BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Boaz Harrosh, (Tue Feb 12, 10:40 am)
Re: [BUGFIX 1/2] gdth: scan for scsi devices, Christoph Hellwig, (Tue Feb 12, 11:05 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Stefan Priebe - alli ..., (Wed Feb 13, 12:06 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, James Bottomley, (Wed Feb 13, 8:44 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Boaz Harrosh, (Wed Feb 13, 9:33 am)
[PATCH ver2] gdth: bugfix for the at-exit problems, Boaz Harrosh, (Wed Feb 13, 9:35 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, James Bottomley, (Wed Feb 13, 9:45 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, James Bottomley, (Wed Feb 13, 10:03 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Boaz Harrosh, (Wed Feb 13, 10:12 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Boaz Harrosh, (Wed Feb 13, 10:18 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, James Bottomley, (Wed Feb 13, 10:33 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, James Bottomley, (Wed Feb 13, 10:36 am)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Jan Engelhardt, (Wed Feb 13, 12:38 pm)
Re: [BUGFIX 2/2] gdth: bugfix for the Timer at exit crash, Christoph Hellwig, (Wed Feb 13, 11:51 pm)
[PATCH] gdth: bugfix for the at-exit problems, Boaz Harrosh, (Thu Feb 14, 4:58 am)
Re: [PATCH] gdth: bugfix for the at-exit problems, James Bottomley, (Thu Feb 14, 9:10 am)
Re: [PATCH] gdth: bugfix for the at-exit problems, Boaz Harrosh, (Thu Feb 14, 9:18 am)