public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Call release on scsi legacy LLDD
@ 2003-05-16  5:48 Mike Anderson
  0 siblings, 0 replies; only message in thread
From: Mike Anderson @ 2003-05-16  5:48 UTC (permalink / raw)
  To: linux-scsi


-andmike
--
Michael Anderson
andmike@us.ibm.com


DESC
In the sysfs scsi host reference counting merge the call to a legacy hosts
release function was removed.

This patch adds the call back in.

This patch was tested with insmod / rmmod on LLDDs using the legacy interface
and LLDDs using the new interface:

Legacy Interface:
qla2xxx-v8.00.00b1
qlogicisp
aic7xxx_old (Does not call scsi_unregister in release, but unloaded)

New Interface:
scsi_debug
aic7xxx (Many illegal context warnings caused by mid vs LLDD primitive
         mixing, but appears to unload clean).

EDESC


 drivers/scsi/hosts.c |    4 ++++
 1 files changed, 4 insertions(+)

diff -puN drivers/scsi/hosts.c~scsi-legacy-release-call drivers/scsi/hosts.c
--- sysfs-bleed-2.5/drivers/scsi/hosts.c~scsi-legacy-release-call	Thu May 15 13:05:07 2003
+++ sysfs-bleed-2.5-andmike/drivers/scsi/hosts.c	Thu May 15 13:08:47 2003
@@ -215,6 +215,10 @@ int scsi_remove_host(struct Scsi_Host *s
 	scsi_proc_host_rm(shost);
 	scsi_forget_host(shost);
 	scsi_sysfs_remove_host(shost);
+
+	if (shost->hostt->release)
+		(*shost->hostt->release)(shost);
+
 	return 0;
 }
 

_


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-05-16  5:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-16  5:48 [PATCH] Call release on scsi legacy LLDD Mike Anderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox