[SCSI] gdth: bugfix for the at-exit problems
authorBoaz Harrosh <bharrosh@panasas.com>
Wed, 27 Feb 2008 23:27:16 +0000 (15:27 -0800)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Wed, 27 Feb 2008 23:53:43 +0000 (15:53 -0800)
gdth_exit would first remove all cards then stop the timer
and would not sync with the timer function. This caused a crash
in gdth_timer() when module was unloaded.
So del_timer_sync the timer before we delete the cards.

also the reboot notifier function would crash. So clean
that up and fix the crashes.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Tested-by: Joerg Dorchain: <joerg@dorchain.net>
Tested-by: Stefan Priebe <s.priebe@allied-internet.ag>
Tested-by: Jon Chelton <jchelton@ffpglobal.com>
Cc: Stable Tree <stable@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

No differences found