From owner-freebsd-scsi@FreeBSD.ORG Wed Dec 12 21:45:50 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 DCFF116A417 for ; Wed, 12 Dec 2007 21:45:50 +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 9E8DB13C442 for ; Wed, 12 Dec 2007 21:45:50 +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 lBCLjlRR016766; Wed, 12 Dec 2007 14:45:47 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <47605674.5060600@samsco.org> Date: Wed, 12 Dec 2007 14:45:24 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4 MIME-Version: 1.0 To: Hidetoshi Shimokawa References: <1197420795.2738.6.camel@iago.office.miralink.com> <86sl28snpe.wl%simokawa@FreeBSD.ORG> In-Reply-To: <86sl28snpe.wl%simokawa@FreeBSD.ORG> 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]); Wed, 12 Dec 2007 14:45:47 -0700 (MST) X-Spam-Status: No, score=-1.4 required=5.4 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-firewire@freebsd.org, nate@root.org Subject: Re: 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 21:45:50 -0000 Hidetoshi Shimokawa wrote: > Hi Sean, > > At Tue, 11 Dec 2007 16:53:15 -0800, > Sean Bruno wrote: >> 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 > > This a patch I sent Scott several months ago. > It may help you. (this is for -current at that time) Dang, sorry I forgot about this. I'll try to review it today. If I drop it again, please don't hesitate to just commit it. Scott