From owner-freebsd-scsi@FreeBSD.ORG Sun Dec 11 11:52:32 2011 Return-Path: Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7004C1065675; Sun, 11 Dec 2011 11:52:32 +0000 (UTC) (envelope-from marius@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 48C368FC0A; Sun, 11 Dec 2011 11:52:32 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBBBqWBT018458; Sun, 11 Dec 2011 11:52:32 GMT (envelope-from marius@freefall.freebsd.org) Received: (from marius@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBBBqWgb018454; Sun, 11 Dec 2011 11:52:32 GMT (envelope-from marius) Date: Sun, 11 Dec 2011 11:52:32 GMT Message-Id: <201112111152.pBBBqWgb018454@freefall.freebsd.org> To: danno@internet2.edu, marius@FreeBSD.org, freebsd-scsi@FreeBSD.org From: marius@FreeBSD.org Cc: Subject: Re: kern/163130: [mpt] cannot dumpon to mpt connected disk 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: Sun, 11 Dec 2011 11:52:32 -0000 Synopsis: [mpt] cannot dumpon to mpt connected disk State-Changed-From-To: open->feedback State-Changed-By: marius State-Changed-When: Sun Dec 11 11:49:04 UTC 2011 State-Changed-Why: Are you sure that /dev/da16s1d is either unused, i.e. has no partition type set, or is of type freebsd-swap? http://www.freebsd.org/cgi/query-pr.cgi?pr=163130 From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 12 03:44:38 2011 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 9BF551065670; Mon, 12 Dec 2011 03:44:38 +0000 (UTC) (envelope-from danno@internet2.edu) Received: from mail.deathstar.org (maniac.deathstar.org [204.42.254.2]) by mx1.freebsd.org (Postfix) with ESMTP id 78DD28FC0C; Mon, 12 Dec 2011 03:44:38 +0000 (UTC) Received: from [192.168.1.149] (c-69-244-180-112.hsd1.mi.comcast.net [69.244.180.112]) by mail.deathstar.org (Mail Transport) with ESMTP id 3B3A0317BD6A; Sun, 11 Dec 2011 22:26:18 -0500 (EST) Message-ID: <4EE57459.9070506@internet2.edu> Date: Sun, 11 Dec 2011 22:26:17 -0500 From: Dan Pritts User-Agent: Postbox 3.0.2 (Macintosh/20111203) MIME-Version: 1.0 To: marius@FreeBSD.org References: <201112111152.pBBBqWgb018454@freefall.freebsd.org> In-Reply-To: <201112111152.pBBBqWgb018454@freefall.freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-scsi@FreeBSD.org Subject: Re: kern/163130: [mpt] cannot dumpon to mpt connected disk 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: Mon, 12 Dec 2011 03:44:38 -0000 > Are you sure that /dev/da16s1d is either unused, i.e. has no partition > type set, or is of type freebsd-swap? Ah, I see. it's a "4.2BSD" partition according to bsdlabel. I'll relabel and give it a shot. I guess there is a documentation bug, though: the 8.2-RELEASE dumpon(8) page does not list this requirement. thanks! danno -- Dan Pritts, Sr. Systems Engineer Internet2 office: +1-734-352-4953 | mobile: +1-734-834-7224 From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 12 11:07:32 2011 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 5DFE0106564A for ; Mon, 12 Dec 2011 11:07:32 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D7FA48FC24 for ; Mon, 12 Dec 2011 11:07:31 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id pBCB7VbI030138 for ; Mon, 12 Dec 2011 11:07:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id pBCB7Vmj030135 for freebsd-scsi@FreeBSD.org; Mon, 12 Dec 2011 11:07:31 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Dec 2011 11:07:31 GMT Message-Id: <201112121107.pBCB7Vmj030135@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org 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: Mon, 12 Dec 2011 11:07:32 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- f kern/163130 scsi [mpt] cannot dumpon to mpt connected disk o kern/162256 scsi [mpt] QUEUE FULL EVENT and 'mpt_cam_event: 0x0' o kern/161809 scsi [cam] [patch] set kern.cam.boot_delay via build option o kern/159412 scsi [ciss] 7.3 RELEASE: ciss0 ADAPTER HEARTBEAT FAILED err o kern/157770 scsi [iscsi] [panic] iscsi_initiator panic o kern/154432 scsi [xpt] run_interrupt_driven_hooks: still waiting after o kern/153514 scsi [cam] [panic] CAM related panic o kern/153361 scsi [ciss] Smart Array 5300 boot/detect drive problem o kern/152250 scsi [ciss] [patch] Kernel panic when hw.ciss.expose_hidden o kern/151564 scsi [ciss] ciss(4) should increase CISS_MAX_LOGICAL to 10 o docs/151336 scsi Missing documentation of scsi_ and ata_ functions in c s kern/149927 scsi [cam] hard drive not stopped before removing power dur o kern/148083 scsi [aac] Strange device reporting o kern/147704 scsi [mpt] sys/dev/mpt: new chip revision, partially unsupp o kern/146287 scsi [ciss] ciss(4) cannot see more than one SmartArray con o kern/145768 scsi [mpt] can't perform I/O on SAS based SAN disk in freeb o kern/144648 scsi [aac] Strange values of speed and bus width in dmesg o kern/144301 scsi [ciss] [hang] HP proliant server locks when using ciss o kern/142351 scsi [mpt] LSILogic driver performance problems o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o kern/132250 scsi [ciss] ciss driver does not support more then 15 drive o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/127717 scsi [ata] [patch] [request] - support write cache toggling o kern/123674 scsi [ahc] ahc driver dumping o kern/123520 scsi [ahd] unable to boot from net while using ahd o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o bin/57088 scsi [cam] [patch] for a possible fd leak in libcam.c o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 49 problems total. From owner-freebsd-scsi@FreeBSD.ORG Mon Dec 12 17:24:21 2011 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 21FA71065672 for ; Mon, 12 Dec 2011 17:24:21 +0000 (UTC) (envelope-from chuck@tuffli.net) Received: from mail-gx0-f182.google.com (mail-gx0-f182.google.com [209.85.161.182]) by mx1.freebsd.org (Postfix) with ESMTP id E02988FC16 for ; Mon, 12 Dec 2011 17:24:20 +0000 (UTC) Received: by ggnp1 with SMTP id p1so7897900ggn.13 for ; Mon, 12 Dec 2011 09:24:20 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.13.105 with SMTP id g9mr3155907obc.63.1323709131121; Mon, 12 Dec 2011 08:58:51 -0800 (PST) Received: by 10.182.108.105 with HTTP; Mon, 12 Dec 2011 08:58:50 -0800 (PST) In-Reply-To: <20111206195702.GF59489@hoeg.nl> References: <20111206195702.GF59489@hoeg.nl> Date: Mon, 12 Dec 2011 08:58:50 -0800 Message-ID: From: Chuck Tuffli To: Ed Schouten Content-Type: text/plain; charset=ISO-8859-1 Cc: scsi@freebsd.org Subject: Re: Use cdevpriv in targ(4) 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: Mon, 12 Dec 2011 17:24:21 -0000 On Tue, Dec 6, 2011 at 11:57 AM, Ed Schouten wrote: > Hello all, > > I sent this patch to mjacob@ previously, but he redirected me to this > list, so here it goes. > > The other day I spent some time grepping through character device/devfs > code and I noticed we can make the targ(4) driver a lot more beautiful > if we simply change the code to use a single device node (/dev/targ) and > use per-file descriptor data, instead of hacking around with clonelists. > > As I have no idea how to actually test and use targ(4), so is there a > way I can persuade any of you to test/debug this patch for me? Ed - The patch applied for me to 8-stable and is running without problem using scsi_target(8) and the emulex target driver. Works for me. ---chuck From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 13 11:34:04 2011 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C54F106566B for ; Tue, 13 Dec 2011 11:34:04 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 1D25A8FC0A for ; Tue, 13 Dec 2011 11:34:03 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id F39F62A295F1; Tue, 13 Dec 2011 12:34:02 +0100 (CET) Date: Tue, 13 Dec 2011 12:34:02 +0100 From: Ed Schouten To: Chuck Tuffli Message-ID: <20111213113402.GA1771@hoeg.nl> References: <20111206195702.GF59489@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: scsi@freebsd.org Subject: Re: Use cdevpriv in targ(4) 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: Tue, 13 Dec 2011 11:34:04 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, * Chuck Tuffli , 20111212 17:58: > The patch applied for me to 8-stable and is running without problem > using scsi_target(8) and the emulex target driver. Works for me. Awesome. Would anyone from scsi@ object if I commit it to SVN? --=20 Ed Schouten WWW: http://80386.nl/ --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJO5zgqAAoJEG5e2P40kaK79eEP/0/ec7mKukaRO4kO+4wX5fqz xZFv24+jjjzO03bswDNhh3p5/d25O0WJPi8bwAyeFgg+yAAJX0Ct4JCNJ5mfx42+ Kk4jIjJNX0UKgNSjAKN5DjC9vofBncyfKVrbCs0ElSXV31PsJNzIJRg3o/kiuXxw N7W9yzy6VC+Mz8uxIYBZALTgXD4q6pDVInn3FTtr5lhsYrnweCMb9PIiJp/OC9ik cc4/71v85iL3bWb8DAyljpgvnB4J0oh8dxZig/LLjBBNK2AJjGYN+T6nNO0Rw/9I wk/X829JgHYzNz+h2I5EIiWMv0kpjzUa0JxV0fir3KRewncP+PmoOeub0yZM0edY /mdLEE/uXToOSYllZQ5rIyWM645HnBw5G4FG4T4bDF6Wz80uBJmKIJYAdwqoOtq2 pgdFYXoU+6q7dfvdhdy9EGsjIyrQCTpKHloGolqMHvP5FvH4KSaqXqbEaQuO5PcR zAWwBBPCD4Qu+TZh5+/+222gvasc/KxB2qFXZPwhn75sKXNPu4BFVhy0DEnGrY4O kTLgZ924U73UpVLLbr4D5YWOs53R/aKVJPGKec6l1jt72MFGDnDeokASBTa6lelK GrORgFiXGZaqZbFfnTOFCjIlhNYExJIm1JaRB2yoSoEy28raLHeLsx0SBR8h2ZZG +bc5lbBOBURCPjb11qs8 =3D2b -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 13 14:37:41 2011 Return-Path: Delivered-To: scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AD7A1106564A for ; Tue, 13 Dec 2011 14:37:41 +0000 (UTC) (envelope-from seanbru@yahoo-inc.com) Received: from mrout2-b.corp.bf1.yahoo.com (mrout2-b.corp.bf1.yahoo.com [98.139.253.105]) by mx1.freebsd.org (Postfix) with ESMTP id 5D7D28FC12 for ; Tue, 13 Dec 2011 14:37:41 +0000 (UTC) Received: from [127.0.0.1] (proxy6.corp.yahoo.com [216.145.48.19]) by mrout2-b.corp.bf1.yahoo.com (8.14.4/8.14.4/y.out) with ESMTP id pBDEaxpb096191; Tue, 13 Dec 2011 06:36:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=yahoo-inc.com; s=cobra; t=1323787020; bh=whrhsI9IkjNNeQqREoI6I3xqV8XAatKuR8sApk8zLRo=; h=Subject:From:To:Cc:In-Reply-To:References:Content-Type:Date: Message-ID:Mime-Version:Content-Transfer-Encoding; b=GSqe6ak2J+wMJm40gFCtgXbBqHxqZJzFu9XmzgrG+BBFuWKEMLTTxkid9eeMTio38 eUQBxVYNaBJ50Mj9PS0fdsPhDoWLo8kpKl5Y/hz3DxaqLa0QtEZV/40uchthBn+l9a bYBGQdG0BfPUyhy0QIjwDS/+wAeB7NvuV72WNBfA= From: Sean Bruno To: Ed Schouten In-Reply-To: <20111213113402.GA1771@hoeg.nl> References: <20111206195702.GF59489@hoeg.nl> <20111213113402.GA1771@hoeg.nl> Content-Type: text/plain; charset="UTF-8" Date: Tue, 13 Dec 2011 06:36:59 -0800 Message-ID: <1323787019.26931.3.camel@hitfishpass-lx.corp.yahoo.com> Mime-Version: 1.0 X-Mailer: Evolution 2.32.3 (2.32.3-1.fc14) Content-Transfer-Encoding: 7bit Cc: "scsi@freebsd.org" Subject: Re: Use cdevpriv in targ(4) 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: Tue, 13 Dec 2011 14:37:41 -0000 On Tue, 2011-12-13 at 03:34 -0800, Ed Schouten wrote: > Hi, > > * Chuck Tuffli , 20111212 17:58: > > The patch applied for me to 8-stable and is running without problem > > using scsi_target(8) and the emulex target driver. Works for me. > > Awesome. Would anyone from scsi@ object if I commit it to SVN? > I don't think this would be a problem. Sean "What could possibly go wrong?" From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 13 15:25:56 2011 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 9B3C11065672 for ; Tue, 13 Dec 2011 15:25:56 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 4AE4F8FC0A for ; Tue, 13 Dec 2011 15:25:55 +0000 (UTC) Received: from [192.168.135.102] (c-24-7-47-62.hsd1.ca.comcast.net [24.7.47.62]) (authenticated bits=0) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id pBDEpTjp080931 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 13 Dec 2011 06:51:30 -0800 (PST) (envelope-from mj@feral.com) Message-ID: <4EE7666D.5070205@feral.com> Date: Tue, 13 Dec 2011 06:51:25 -0800 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <20111206195702.GF59489@hoeg.nl> <20111213113402.GA1771@hoeg.nl> <1323787019.26931.3.camel@hitfishpass-lx.corp.yahoo.com> In-Reply-To: <1323787019.26931.3.camel@hitfishpass-lx.corp.yahoo.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (ns1.feral.com [192.67.166.1]); Tue, 13 Dec 2011 06:51:30 -0800 (PST) Subject: Re: Use cdevpriv in targ(4) X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mj@feral.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Dec 2011 15:25:56 -0000 Please wait for some testing. From owner-freebsd-scsi@FreeBSD.ORG Tue Dec 13 23:05:44 2011 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 2C7D9106567A for ; Tue, 13 Dec 2011 23:05:44 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id B12908FC12 for ; Tue, 13 Dec 2011 23:05:43 +0000 (UTC) Received: by eekc50 with SMTP id c50so237491eek.13 for ; Tue, 13 Dec 2011 15:05:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=VSLd5Q+f8M96AGFD7jb2eDFIgO9J3yZikY5YcpsSCJ8=; b=KVNeV0e3K2kD9l2AQ+AINR49le3JXkQyrnGv7TrHt6LX+70JtU/odSNutXs8CyjaOA gEHj8LdW0lT2KiET0+VMCqwpM2yfvK01sWPYTm7VFiRhev9kuB+ZZkbZKx69uuUUAqoC HLcGUAgYNYrcmFsoCrXvPsWVamuNGA/Lle8qE= Received: by 10.14.149.134 with SMTP id x6mr309891eej.126.1323816205346; Tue, 13 Dec 2011 14:43:25 -0800 (PST) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua. [212.86.226.226]) by mx.google.com with ESMTPS id 39sm2044352eei.1.2011.12.13.14.43.23 (version=SSLv3 cipher=OTHER); Tue, 13 Dec 2011 14:43:24 -0800 (PST) Sender: Alexander Motin Message-ID: <4EE7D50A.6080201@FreeBSD.org> Date: Wed, 14 Dec 2011 00:43:22 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:8.0) Gecko/20111112 Thunderbird/8.0 MIME-Version: 1.0 To: Chuck Tuffli Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-scsi Subject: CAM locking question 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: Tue, 13 Dec 2011 23:05:44 -0000 Hi. > As an experiment, I added CAM_SIM_LOCK/CAM_SIM_UNLOCK around the > TAILQ_INSERT_TAIL() in xpt_done(), and what was a reliable hang after > a minute or two hasn't shown up in an hour. There is no assertion, but in all cases I remember xpt_done() called while holding SIM lock. Adding another CAM_SIM_LOCK/CAM_SIM_UNLOCK should cause lock recursion and panic, if kernel built with INVARIANTS. -- Alexander Motin