All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Anderson <andmike@us.ibm.com>
To: linux-scsi@vger.kernel.org
Subject: [PATCH 2/3] scsi_forget_host - scsi_debug usage
Date: Fri, 11 Jun 2004 21:22:32 -0700	[thread overview]
Message-ID: <20040612042232.GC21105@us.ibm.com> (raw)
In-Reply-To: <20040612042106.GB21105@us.ibm.com>

DESC
scsi_forget_host - scsi_debug usage

Use the export scsi_forget_host interface to remove child scsi devices
from the scsi_host prior to removal.

Signed-off-by: Mike Anderson <andmike@us.ibm.com>
EDESC


 patched-2.6-andmike/drivers/scsi/scsi_debug.c |    1 +
 1 files changed, 1 insertion(+)

diff -puN drivers/scsi/scsi_debug.c~use_scsi_forget_host drivers/scsi/scsi_debug.c
--- patched-2.6/drivers/scsi/scsi_debug.c~use_scsi_forget_host	Sat Jun 12 00:47:43 2004
+++ patched-2.6-andmike/drivers/scsi/scsi_debug.c	Sat Jun 12 00:52:50 2004
@@ -1725,6 +1725,7 @@ static int sdebug_driver_remove(struct d
 		return -ENODEV;
 	}
 
+	scsi_forget_host(sdbg_host->shost);
         scsi_remove_host(sdbg_host->shost);
 
         list_for_each_safe(lh, lh_sf, &sdbg_host->dev_info_list) {

_


  reply	other threads:[~2004-06-12  4:22 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   ` Mike Anderson [this message]
2004-06-12  4:24     ` [PATCH 3/3] scsi_forget_host - rename scsi_forget_host to scsi_unscan_host Mike Anderson
2004-06-14  8:06     ` [PATCH 2/3] scsi_forget_host - scsi_debug usage 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=20040612042232.GC21105@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.