From owner-freebsd-scsi Tue Feb 25 19:55:44 2003 Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1426037B401 for ; Tue, 25 Feb 2003 19:55:43 -0800 (PST) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [133.11.205.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1AE9C43F93 for ; Tue, 25 Feb 2003 19:55:42 -0800 (PST) (envelope-from simokawa@sat.t.u-tokyo.ac.jp) Received: from is2.mh.itc.u-tokyo.ac.jp (is2.mh.itc.u-tokyo.ac.jp [127.0.0.1]) by is2.mh.itc.u-tokyo.ac.jp (Postfix) with ESMTP id 233B037807E for ; Wed, 26 Feb 2003 12:55:40 +0900 (JST) Received: from mailhosting.itc.u-tokyo.ac.jp (IDENT:mirapoint@mailhosting.itc.u-tokyo.ac.jp [133.11.205.3]) by is2.mh.itc.u-tokyo.ac.jp (8.11.3/8.11.3) with ESMTP id h1Q3tdR16968 for ; Wed, 26 Feb 2003 12:55:39 +0900 Received: from ett.sat.t.u-tokyo.ac.jp (ett.sat.t.u-tokyo.ac.jp [133.11.135.3]) by mailhosting.itc.u-tokyo.ac.jp (Mirapoint Messaging Server MOS 2.9.3.2) with ESMTP id AHY58867; Wed, 26 Feb 2003 12:55:39 +0900 (JST) Date: Wed, 26 Feb 2003 12:55:39 +0900 Message-ID: From: Hidetoshi Shimokawa To: freebsd-scsi@freebsd.org Subject: Re: call scan_bus in interrupt context. In-Reply-To: References: User-Agent: Wanderlust/2.11.0 (Wonderwall) REMI/1.14.3 (Matsudai) FLIM/1.14.3 (=?ISO-8859-1?Q?Unebigory=F2mae?=) APEL/10.3 MULE XEmacs/21.4 (patch 8) (Honest Recruiter) (i386--freebsd) X-Face: OE([KxWyJI0r[R~S/>7ia}SJ)i%a,$-9%7{*yihQk|]gl}2p#"oXmX/fT}Bn7: #j7i14gu$jgR\S*&C3R/pJX List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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