From owner-freebsd-current@FreeBSD.ORG Tue Apr 3 16:17:08 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 4ED1A16A4CF; Tue, 3 Apr 2007 16:17:08 +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 07BA113C4BD; Tue, 3 Apr 2007 16:17:07 +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 l33GGxfT067039; Tue, 3 Apr 2007 10:17:04 -0600 (MDT) (envelope-from scottl@samsco.org) Message-ID: <46127DF4.5080703@samsco.org> Date: Tue, 03 Apr 2007 10:16:52 -0600 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: Alex Dupre References: <46126585.8080204@FreeBSD.org> In-Reply-To: <46126585.8080204@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]); Tue, 03 Apr 2007 10:17:04 -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-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Apr 2007 16:17:08 -0000 Alex Dupre wrote: > Hello, > I found an incorrect behavior of the targ device on -CURRENT: closing > the descriptor doesn't return. On -STABLE it works. I think to have > identified the problem (or at least the change that exposed it) in the > conditional msleep() call added into kern_conf.c to destroy_devl() in > rev. 1.119. > > This is a simple testcase: > > > #include > #include > > int > main(int argc, char *argv[]) > { > int targ_fd = open("/dev/targ0", O_RDWR); > > if (targ_fd < 0) > err(1, "Do you have 'device targ' in your kernel?"); > > close(targ_fd); > } > 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? Scott