From: Mike Anderson <andmike@us.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH] Call release on scsi legacy LLDD
Date: Thu, 15 May 2003 22:48:38 -0700 [thread overview]
Message-ID: <20030516054838.GA1736@beaverton.ibm.com> (raw)
-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;
}
_
reply other threads:[~2003-05-16 5:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030516054838.GA1736@beaverton.ibm.com \
--to=andmike@us.ibm.com \
--cc=linux-scsi@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox