From owner-freebsd-scsi@FreeBSD.ORG Fri Feb 16 04:41:35 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8675316A401; Fri, 16 Feb 2007 04:41:35 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id 489D413C481; Fri, 16 Feb 2007 04:41:35 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id l1G4fS3q021762; Thu, 15 Feb 2007 21:41:33 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45D535E4.60609@samsco.org> Date: Thu, 15 Feb 2007 21:41:08 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: mjacob@freebsd.org References: <20070104225519.Q92958@ns1.feral.com> <459E8AE7.90104@samsco.org> <20070105093930.Y34456@ns1.feral.com> <459E97E6.4000603@samsco.org> <459E989C.2020602@samsco.org> <20070105103431.A34456@ns1.feral.com> <20070105104021.D34456@ns1.feral.com> <45A9225D.4080907@scsiguy.com> <20070215145657.N45611@ns1.feral.com> <45D4F7C8.7050903@samsco.org> <20070215175554.X56445@ns1.feral.com> In-Reply-To: <20070215175554.X56445@ns1.feral.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Thu, 15 Feb 2007 21:41:34 -0700 (MST) X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: CAM rescanner thread? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 04:41:35 -0000 The goal was to create sys/cam/scsi/scsi_probe.c and start divorcing the SCSI knowledge from the XPT. Having it be a thread was just a side effect. Unfortunately, I haven't been able to finish that work yet. It's getting closer, though. But seriously, I saw little specific benefit to it being a separate thread rather than part of the camisr. Scanning/probing doesn't block, so it's not like it's blocking the camisr from processing other I/O. It's just nice from a modularity standpoint. Scott mjacob@freebsd.org wrote: > > And you didn't check it in because....? > > > On Thu, 15 Feb 2007, Scott Long wrote: > >> Matthew Jacob wrote: >>> >>> Following up from this, belatedly, I see lots of good stuff, and: >>> >>> >>>> With the discovery process moved to a >>>> thread and some augmentation to XPT_SCAN_*, we should be good enough >>>> for now. >>> >>> So, in principle a thread for rescanning seems appropriate to you? >>> >>> -matt >>> >> >> I've had various prototypes of this in the past. >> >> Scott >> >>