Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Feb 2003 12:55:39 +0900
From:      Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp>
To:        freebsd-scsi@freebsd.org
Subject:   Re: call scan_bus in interrupt context.
Message-ID:  <ybssmublmpw.wl@ett.sat.t.u-tokyo.ac.jp>
In-Reply-To: <ybsu1erlna9.wl@ett.sat.t.u-tokyo.ac.jp>
References:  <ybsu1erlna9.wl@ett.sat.t.u-tokyo.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
Actually, I really appreciate if we have "XPT_SCAN_TARGET" which can
be called in a interrupt context, and scan all LUNs regardless of
existance of 'LUN 0'(like CAM_QUIRK_HILUN).

/\ Hidetoshi Shimokawa
\/  simokawa@sat.t.u-tokyo.ac.jp
PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html


At Wed, 26 Feb 2003 12:43:26 +0900,
Hidetoshi Shimokawa wrote:
> 
> Hi,
> 
> I have a question about XPT_SCAN_BUS in CAM.
> I need to initiate a bus scan from a interrupt context but xpt_alloc_ccb()
> failed because it calls malloc with M_WAITOK.
> (kernel panics if you compile it with INVARIANTS in 4-stable)
> 
> I'd like to call it in firewire/sbp.c.
> 
> What is the right way to initiate a bus scan in a interrupt context?
> Do I need a kernel thread to do that?
> 
> /\ Hidetoshi Shimokawa
> \/  simokawa@sat.t.u-tokyo.ac.jp
> PGP public key: http://www.sat.t.u-tokyo.ac.jp/~simokawa/pgp.html

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?ybssmublmpw.wl>