Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 16:12:26 -0700 (PDT)
From:      Matthew Jacob <mjacob@feral.com>
To:        j mckitrick <jcm@freebsd-uk.eu.org>
Cc:        <scsi@freebsd.org>
Subject:   Re: how to invalidate scsi connection to driver module
Message-ID:  <20010622161135.A21527-100000@wonky.feral.com>
In-Reply-To: <20010623001035.A67153@dogma.freebsd-uk.eu.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On Sat, 23 Jun 2001, j mckitrick wrote:

>
> here is what i did so far:
>
>         xpt_async(AC_LOST_DEVICE, vpo->path, NULL);
>         xpt_free_path(vpo->path);
>         xpt_bus_deregister(cam_sim_path(vpo->sim));
>         cam_sim_free(vpo->sim, TRUE);
>
> It pretty much works, meaning the module unloads and can be reloaded without
> crashing.  However, something odd happens.  When you first attach, as
> expected it says "vpo0... da0..." which is fine.  But on each subsequent
> reattach, it allocates da0 and da1... then da0, da1, and da2.  And so on.
> When i detach, it detaches the entire list.  Everything still works, but it
> should *not* attach /n/ devices for every /nth/ attach.
>
> How do i force only one instance of the drive for each attach?

I'm not quite following what happens, but if you are deregistering a bus, all
of the devices for that bus go away. I need a few more details.

-matt



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-scsi" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010622161135.A21527-100000>