From owner-freebsd-scsi Fri Jun 22 14: 7:28 2001 Delivered-To: freebsd-scsi@freebsd.org Received: from probity.mcc.ac.uk (probity.mcc.ac.uk [130.88.200.94]) by hub.freebsd.org (Postfix) with ESMTP id DE88E37B401 for ; Fri, 22 Jun 2001 14:07:24 -0700 (PDT) (envelope-from jcm@freebsd-uk.eu.org) Received: from dogma.freebsd-uk.eu.org ([130.88.200.97] ident=root) by probity.mcc.ac.uk with esmtp (Exim 2.05 #7) id 15DY9B-000KPh-00; Fri, 22 Jun 2001 22:07:21 +0100 Received: (from jcm@localhost) by dogma.freebsd-uk.eu.org (8.11.3/8.11.1) id f5ML7Kh64543; Fri, 22 Jun 2001 22:07:20 +0100 (BST) (envelope-from jcm) Date: Fri, 22 Jun 2001 22:07:19 +0100 From: j mckitrick To: Matthew Jacob Cc: scsi@freebsd.org Subject: Re: how to invalidate scsi connection to driver module Message-ID: <20010622220719.A64495@dogma.freebsd-uk.eu.org> References: <20010622123714.R20923-100000@wonky.feral.com> <20010622135159.B20923-100000@wonky.feral.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <20010622135159.B20923-100000@wonky.feral.com>; from mjacob@feral.com on Fri, Jun 22, 2001 at 01:52:57PM -0700 Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org So the function you call is xpt_bus_deregister() ? On Fri, Jun 22, 2001 at 01:52:57PM -0700, Matthew Jacob wrote: | | To follow up on this- Since I've been fooling around with the | CAM_NEW_TRAN_CODE and Fibre Channel, I have the SIM call xpt_async | with AC_LOST_DEVICE when a device goes away, so I had: | | isp0: Retaining Loop ID 0x20 for Target 32 (Port 0xb2) | isp0: Retaining Loop ID 0x21 for Target 33 (Port 0xb1) | isp0: Retaining Loop ID 0x22 for Target 34 (Port 0xae) | isp0: Retaining Loop ID 0x23 for Target 35 (Port 0xad) | isp0: Retaining Loop ID 0x24 for Target 36 (Port 0xac) | isp0: Retaining Loop ID 0x25 for Target 37 (Port 0xab) | isp0: Retaining Loop ID 0x2d for Target 45 (Port 0x9e) | isp0: Retaining Loop ID 0x3d for Target 61 (Port 0x75) | isp0: Retaining Loop ID 0x6d for Target 109 (Port 0x29) | isp0: Retaining Loop ID 0x7d for Target 125 (Port 0x1) | isp0: Target 38 (Loop 0x26) Port ID 0xaa (role Target) Departed | Port WWN 0x2100002037082546 | Node WWN 0x2000002037082546 | (pass7:isp0:0:38:0): lost device | (pass7:isp0:0:38:0): removing device entry | (da7:isp0:0:38:0): lost device | (da7:isp0:0:38:0): removing device entry | | That seems to work well... note it removes all periphs that referred to that | device. | | -matt | | Jonathon -- Microsoft complaining about the source license used by Linux is like the event horizon calling the kettle black. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message