From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 12 00:53:17 2007 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4B7F016A474 for ; Wed, 12 Dec 2007 00:53:17 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from plato.miralink.com (mail.miralink.com [70.103.185.20]) by mx1.freebsd.org (Postfix) with ESMTP id 382A113C45D for ; Wed, 12 Dec 2007 00:53:17 +0000 (UTC) (envelope-from sbruno@miralink.com) Received: from localhost (localhost.localdomain [127.0.0.1]) by plato.miralink.com (Postfix) with ESMTP id DFBE861B046; Tue, 11 Dec 2007 16:53:16 -0800 (PST) Received: from plato.miralink.com ([127.0.0.1]) by localhost (plato.miralink.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08936-06; Tue, 11 Dec 2007 16:53:16 -0800 (PST) Received: from [10.0.0.40] (iago.office.miralink.com [10.0.0.40]) by plato.miralink.com (Postfix) with ESMTP id 4443061B032; Tue, 11 Dec 2007 16:53:16 -0800 (PST) From: Sean Bruno To: nate@root.org Content-Type: text/plain Date: Tue, 11 Dec 2007 16:53:15 -0800 Message-Id: <1197420795.2738.6.camel@iago.office.miralink.com> Mime-Version: 1.0 X-Mailer: Evolution 2.12.2 (2.12.2-2.fc8) Content-Transfer-Encoding: 7bit X-DSPAM-Result: Innocent X-DSPAM-Processed: Tue Dec 11 16:53:16 2007 X-DSPAM-Confidence: 0.9997 X-DSPAM-Probability: 0.0000 X-DSPAM-Signature: 475f30fc110587852419847 X-DSPAM-Factors: 27, X-Virus-Scanned: amavisd-new at X-Spam-Status: No, score=-4.499 tagged_above=-10 required=6.6 autolearn=ham tests=[ALL_TRUSTED=-1.8, BAYES_00=-2.599, DSPAM_HAM=-0.1] X-Spam-Score: -4.499 X-Spam-Level: Cc: freebsd-scsi@freebsd.org Subject: scsi_target witness lock error 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: Wed, 12 Dec 2007 00:53:17 -0000 While I was debugging some random stuff with the firewire target, I noted the following witness lock: http://www.consultcsg.com/scsitarget_witness.txt It looks like there is some kind of conflict between the locks in sys/cam/scsi/scsi_target.c and the kern environment locks? I'm fairly certain that this is an easy fix, but I just don't see how to work around it. Sean