From owner-freebsd-scsi@FreeBSD.ORG  Tue Apr  3 21:35:03 2007
Return-Path: <owner-freebsd-scsi@FreeBSD.ORG>
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 3F15416A404;
	Tue,  3 Apr 2007 21:35:03 +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 E75C713C448;
	Tue,  3 Apr 2007 21:35:02 +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.8/8.13.8) with ESMTP id l33LYpdm070116;
	Tue, 3 Apr 2007 15:34:56 -0600 (MDT)
	(envelope-from scottl@samsco.org)
Message-ID: <4612C873.1020505@samsco.org>
Date: Tue, 03 Apr 2007 15:34:43 -0600
From: Scott Long <scottl@samsco.org>
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: Matthew Jacob <lydianconcepts@gmail.com>
References: <46126585.8080204@FreeBSD.org> <46127DF4.5080703@samsco.org>	
	<461285E0.8000008@FreeBSD.org>
	<7579f7fb0704031332o64d0637coe17770971d5a6e29@mail.gmail.com>
In-Reply-To: <7579f7fb0704031332o64d0637coe17770971d5a6e29@mail.gmail.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]);
	Tue, 03 Apr 2007 15:34:56 -0600 (MDT)
X-Spam-Status: No, score=-1.4 required=5.5 tests=ALL_TRUSTED autolearn=failed
	version=3.1.8
X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on pooker.samsco.org
Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org
Subject: Re: targclose doesn't return
X-BeenThere: freebsd-scsi@freebsd.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: SCSI subsystem <freebsd-scsi.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-scsi>,
	<mailto:freebsd-scsi-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-scsi>
List-Post: <mailto:freebsd-scsi@freebsd.org>
List-Help: <mailto:freebsd-scsi-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-scsi>,
	<mailto:freebsd-scsi-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Apr 2007 21:35:03 -0000

My guess is that the kninit() in targopen isn't being cleaned up from in
targclose.  I'm not terribly familiar in how the knote API works,
though.

Scott


Matthew Jacob wrote:
> Yeah- I've seen this too.
> 
> On 4/3/07, Alex Dupre <ale@freebsd.org> wrote:
>> Scott Long wrote:
>> > Are there any other console messages from the targ driver?  Can you
>> > turn on CAMDEBUG and send us the trace of what is going on?
>>
>> CAMDEBUG is already on, but simply opening/closing the targ device,
>> without sending any ioctl to enable it, shouldn't produce any CAM
>> message. I traced the kernel thread and I found that it doesn't return
>> from the destroy_devl() function: csw->d_purge is NULL and
>> dev->si_threadcount is '1'. The thread enters the following block
>> (kern_conf.c, row 690) and never exits.
>>
>>
>>        while (dev->si_threadcount != 0) {
>>                /* Use unique dummy wait ident */
>>                msleep(&csw, &devmtx, PRIBIO, "devdrn", hz / 10);
>>        }
>>
>>
>> -- 
>> Alex Dupre
>> _______________________________________________
>> freebsd-scsi@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-scsi
>> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"
>>