From: Mike Anderson <andmike@us.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH 3/3] scsi_forget_host - rename scsi_forget_host to scsi_unscan_host
Date: Fri, 11 Jun 2004 21:24:21 -0700 [thread overview]
Message-ID: <20040612042421.GD21105@us.ibm.com> (raw)
In-Reply-To: <20040612042232.GC21105@us.ibm.com>
DESC
scsi_forget_host - rename scsi_forget_host to scsi_unscan_host
This patch changes the name of the newly export scsi_forget_host function
to scsi_unscan_host. The scsi_unscan_host function name appears to create
a more symmetric LLDD interface
scsi_add_host
scsi_scan_host
...
scsi_unscan_host
scsi_remove_host
Signed-off-by: Mike Anderson <andmike@us.ibm.com>
EDESC
patched-2.6-andmike/drivers/scsi/hosts.c | 2 +-
patched-2.6-andmike/drivers/scsi/scsi_debug.c | 2 +-
patched-2.6-andmike/drivers/scsi/scsi_scan.c | 2 +-
patched-2.6-andmike/drivers/scsi/scsi_syms.c | 2 +-
patched-2.6-andmike/include/scsi/scsi_host.h | 2 +-
5 files changed, 5 insertions(+), 5 deletions(-)
diff -puN drivers/scsi/scsi_syms.c~scsi_unscan_host drivers/scsi/scsi_syms.c
--- patched-2.6/drivers/scsi/scsi_syms.c~scsi_unscan_host Sat Jun 12 00:47:46 2004
+++ patched-2.6-andmike/drivers/scsi/scsi_syms.c Sat Jun 12 00:47:46 2004
@@ -36,7 +36,7 @@ EXPORT_SYMBOL(scsi_register_interface);
EXPORT_SYMBOL(scsi_host_alloc);
EXPORT_SYMBOL(scsi_add_host);
EXPORT_SYMBOL(scsi_scan_host);
-EXPORT_SYMBOL(scsi_forget_host);
+EXPORT_SYMBOL(scsi_unscan_host);
EXPORT_SYMBOL(scsi_remove_host);
EXPORT_SYMBOL(scsi_host_get);
EXPORT_SYMBOL(scsi_host_put);
diff -puN include/scsi/scsi_host.h~scsi_unscan_host include/scsi/scsi_host.h
--- patched-2.6/include/scsi/scsi_host.h~scsi_unscan_host Sat Jun 12 00:47:46 2004
+++ patched-2.6-andmike/include/scsi/scsi_host.h Sat Jun 12 00:47:46 2004
@@ -501,7 +501,7 @@ struct Scsi_Host {
extern struct Scsi_Host *scsi_host_alloc(struct scsi_host_template *, int);
extern int scsi_add_host(struct Scsi_Host *, struct device *);
extern void scsi_scan_host(struct Scsi_Host *);
-extern void scsi_forget_host(struct Scsi_Host *);
+extern void scsi_unscan_host(struct Scsi_Host *);
extern void scsi_remove_host(struct Scsi_Host *);
extern struct Scsi_Host *scsi_host_get(struct Scsi_Host *);
extern void scsi_host_put(struct Scsi_Host *t);
diff -puN drivers/scsi/scsi_debug.c~scsi_unscan_host drivers/scsi/scsi_debug.c
--- patched-2.6/drivers/scsi/scsi_debug.c~scsi_unscan_host Sat Jun 12 00:47:46 2004
+++ patched-2.6-andmike/drivers/scsi/scsi_debug.c Sat Jun 12 00:47:46 2004
@@ -1725,7 +1725,7 @@ static int sdebug_driver_remove(struct d
return -ENODEV;
}
- scsi_forget_host(sdbg_host->shost);
+ scsi_unscan_host(sdbg_host->shost);
scsi_remove_host(sdbg_host->shost);
list_for_each_safe(lh, lh_sf, &sdbg_host->dev_info_list) {
diff -puN drivers/scsi/scsi_scan.c~scsi_unscan_host drivers/scsi/scsi_scan.c
--- patched-2.6/drivers/scsi/scsi_scan.c~scsi_unscan_host Sat Jun 12 00:47:46 2004
+++ patched-2.6-andmike/drivers/scsi/scsi_scan.c Sat Jun 12 00:47:46 2004
@@ -1259,7 +1259,7 @@ void scsi_scan_host(struct Scsi_Host *sh
SCAN_WILD_CARD, 0);
}
-void scsi_forget_host(struct Scsi_Host *shost)
+void scsi_unscan_host(struct Scsi_Host *shost)
{
struct scsi_device *sdev, *tmp;
unsigned long flags;
diff -puN drivers/scsi/hosts.c~scsi_unscan_host drivers/scsi/hosts.c
--- patched-2.6/drivers/scsi/hosts.c~scsi_unscan_host Sat Jun 12 00:47:46 2004
+++ patched-2.6-andmike/drivers/scsi/hosts.c Sat Jun 12 00:47:46 2004
@@ -79,7 +79,7 @@ void scsi_remove_host(struct Scsi_Host *
{
scsi_host_cancel(shost, 0);
scsi_proc_host_rm(shost);
- scsi_forget_host(shost);
+ scsi_unscan_host(shost);
set_bit(SHOST_DEL, &shost->shost_state);
_
next prev parent reply other threads:[~2004-06-12 4:24 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-06-12 4:19 [PATCH 0/3] export scsi_forget_host Mike Anderson
2004-06-12 4:21 ` [PATCH 1/3] scsi_forget_host - export function Mike Anderson
2004-06-12 4:22 ` [PATCH 2/3] scsi_forget_host - scsi_debug usage Mike Anderson
2004-06-12 4:24 ` Mike Anderson [this message]
2004-06-14 8:06 ` Christoph Hellwig
2004-06-14 13:06 ` Jens Axboe
2004-06-14 13:23 ` Christoph Hellwig
2004-06-14 13:26 ` Jens Axboe
2004-06-14 13:30 ` Christoph Hellwig
2004-06-14 13:36 ` Jens Axboe
2004-06-14 15:23 ` Mike Anderson
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=20040612042421.GD21105@us.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