Commit 1e8ac078 authored by Mike Anderson's avatar Mike Anderson Committed by James Bottomley

[PATCH] Call release on scsi legacy LLDD

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).

 drivers/scsi/hosts.c |    4 ++++
 1 files changed, 4 insertions(+)
parent 2864cffb
...@@ -215,6 +215,10 @@ int scsi_remove_host(struct Scsi_Host *shost) ...@@ -215,6 +215,10 @@ int scsi_remove_host(struct Scsi_Host *shost)
scsi_proc_host_rm(shost); scsi_proc_host_rm(shost);
scsi_forget_host(shost); scsi_forget_host(shost);
scsi_sysfs_remove_host(shost); scsi_sysfs_remove_host(shost);
if (shost->hostt->release)
(*shost->hostt->release)(shost);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment