From owner-freebsd-scsi@FreeBSD.ORG Sat Mar 19 11:59:14 2005 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 87C6416A4CE; Sat, 19 Mar 2005 11:59:14 +0000 (GMT) Received: from cs1.cs.huji.ac.il (cs1.cs.huji.ac.il [132.65.16.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 32F7B43D54; Sat, 19 Mar 2005 11:59:14 +0000 (GMT) (envelope-from danny@cs.huji.ac.il) Received: from pampa.cs.huji.ac.il ([132.65.80.32]) by cs1.cs.huji.ac.il with esmtp id 1DCcbo-000ABI-Fu; Sat, 19 Mar 2005 13:59:12 +0200 X-Mailer: exmh version 2.7.0 06/18/2004 with nmh-1.0.4 To: scsi@freebsd.org In-Reply-To: Message from Danny Braniss Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 19 Mar 2005 13:59:12 +0200 From: Danny Braniss Message-ID: cc: Sam Leffler cc: net@freebsd.org Subject: Re: iSCSI initiator driver beta version, testers wanted X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 11:59:14 -0000 > with tags enabled, iSCSI is much faster, but it also causes a deadlock :-( > this is what i run: > newfs -U / > cd / > restore rf /home/file.dump > > on the same motherboard, a dual Xeon, with smp disabled all is OK > with smp enabled restore gets stuck usualy waiting on biord. > the iscsi driver shows that all requests have been done, the sniffing > shows the same(ie all request have been done). > > so this leads me to think that there is some race condition that i'm not > aware of in a SMP system, where xpt_done(ccb) is called while > another process is calling biowait. > > another lead is that after restore gets stuck, the system slowly gets > 'stalled'. > > any insight is most welcome!, i'm also stuck. ahh, hate talking to myself :-) grabbing Giant before calling xpt_done solved it, so the problem is most probably in the CAM ... danny