Date: Thu, 27 Feb 2003 13:31:57 +0900 From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> To: non@ever.sanda.gr.jp Cc: freebsd-scsi@freebsd.org Subject: Re: call scan_bus in interrupt context. Message-ID: <ybsk7fml4xu.wl@ett.sat.t.u-tokyo.ac.jp> In-Reply-To: <20030226130721S.non@ever.sanda.gr.jp> References: <ybsu1erlna9.wl@ett.sat.t.u-tokyo.ac.jp> <20030226130721S.non@ever.sanda.gr.jp>
next in thread | previous in thread | raw e-mail | index | archive | help
At Wed, 26 Feb 2003 13:07:21 +0900, non@ever.sanda.gr.jp wrote: > > From: Hidetoshi Shimokawa <simokawa@sat.t.u-tokyo.ac.jp> > Date: Wed, 26 Feb 2003 12:43:26 +0900 > > 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) > > Does scsi_low_rescan_bus_cam() in sys/cam/scsi/scsi_low.c help ? This is almost same as I did except I used M_NOWAIT flags for malloc(). XPT_SCAN_BUS cannot be used in an interrupt context. Anyway, I implemented scan_target function using XPT_SCAN_LUN which can be used in an interrupt context. It's ok for now. /\ 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?ybsk7fml4xu.wl>
