James Bottomley 97af50f60f [SCSI] aic7xxx/aic79xx: fix module removal path not to panic
In these drivers, scsi_remove_host() is called too late, at the point
it is called, the driver has already shut down too far to accept any
I/O that the shutdown might generate.  Any generated I/O actually
triggers a panic.

Fix this by calling scsi_remove_host() as early as possible and not
calling scsi_host_put() until just before we kfree the ahc_softc.

Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
2005-10-02 15:32:25 -05:00
..
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-07-11 12:47:47 -05:00
2005-04-16 15:20:36 -07:00
2005-09-04 19:46:07 -05:00
2005-04-16 15:20:36 -07:00
2005-08-15 09:18:55 -05:00
2005-08-15 09:18:55 -05:00
2005-04-16 15:20:36 -07:00
2005-09-04 19:46:07 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-08-15 09:18:55 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-08-12 12:28:10 -05:00
2005-09-04 19:46:07 -05:00
2005-09-04 19:46:07 -05:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00