Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 09 Aug 2011 13:18:23 -0700
From:      Matthew Jacob <mj@feral.com>
To:        freebsd-scsi@freebsd.org
Subject:   Re: some changes to xpt to help make unloading sim modules safer
Message-ID:  <4E41960F.9040203@feral.com>
In-Reply-To: <20110809193949.GA93077@nargothrond.kdm.org>
References:  <4E3F0332.7030004@feral.com> <20110809193949.GA93077@nargothrond.kdm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8/9/2011 12:39 PM, Kenneth D. Merry wrote:
>
>> I added a few after that to guard against overrunning some counters so
>> that they would wrap.
> Just out of curiosity, have you seen instances where the counters have
> gone negative?

No- but it's one of those things you'd be unlikely to notice w/o unloads :-)

>
> I would think you'd want to wait until the periph is closed, but perhaps
> there is a way to get away with it if there aren't any commands outstanding
> in the SIM.
>
> You could send async notifications that all of the devices on the bus have
> gone away, and then once everything disappears, you could finish the
> unload.
>
> \

Either would work, but I'm inclined to think it'd be better if we finish 
newbusifying all of this.

> Ken




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4E41960F.9040203>