From nobody@FreeBSD.org  Wed Aug  3 12:43:41 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id A1D0F106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Aug 2011 12:43:41 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 912C28FC13
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  3 Aug 2011 12:43:41 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p73ChfRC007932
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 3 Aug 2011 12:43:41 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p73ChfkA007910;
	Wed, 3 Aug 2011 12:43:41 GMT
	(envelope-from nobody)
Message-Id: <201108031243.p73ChfkA007910@red.freebsd.org>
Date: Wed, 3 Aug 2011 12:43:41 GMT
From: Stephane Lapie <stephane.lapie@darkbsd.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: isp(4)+gmultipath(8) : removing active fiber path, and gmultipath failing over to standby path provokes a kernel panic
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         159414
>Category:       kern
>Synopsis:       [isp] isp(4)+gmultipath(8) : removing active fiber path, and gmultipath failing over to standby path provokes a kernel panic
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-geom
>State:          feedback
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Aug 03 12:50:08 UTC 2011
>Closed-Date:    
>Last-Modified:  Mon Sep 03 13:39:01 UTC 2012
>Originator:     Stephane Lapie
>Release:        8.2-RELEASE
>Organization:
Aozora Bank
>Environment:
FreeBSD fccbakpoda.aozora.lan 8.2-RELEASE-AZB FreeBSD 8.2-RELEASE-AZB #1: Thu Mar  3 18:39:55 UTC 2011    root@fcc4svnapf01.aozora.lan:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
When using FC HBAs handled by the isp(4) driver, gmultipath(8) (two fiber paths to access the same devices), and a ZFS pool, removing the active link and trying to provoke automatic failover, will cause a kernel panic.
>How-To-Repeat:
Remove the active fiber link (confirmable with activity LEDs from the storage unit) while I/O is going on. The kernel log will display some devices failing over, invalidated SCSI packets and devices, isp(4) handle timeouts, before panicking. Latest visible kernel trap message concerns the g_mp_kt thread.

However, if gmultipath rotate is used to switch path on all devices, then it can be safely removed. This looks like a race condition between isp(4) loopdown provoking da(4) destruction, and gmultipath(8) failover.
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Fri Aug 5 01:35:36 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159414 
Responsible-Changed-From-To: freebsd-scsi->mjacob 
Responsible-Changed-By: mjacob 
Responsible-Changed-When: Fri Aug 5 01:39:45 UTC 2011 
Responsible-Changed-Why:  
I guessI should own this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159414 
State-Changed-From-To: open->feedback 
State-Changed-By: mjacob 
State-Changed-When: Mon Sep 3 13:37:28 UTC 2012 
State-Changed-Why:  


http://www.freebsd.org/cgi/query-pr.cgi?pr=159414 
Responsible-Changed-From-To: mjacob->freebsd-geom 
Responsible-Changed-By: mjacob 
Responsible-Changed-When: Mon Sep 3 13:38:18 UTC 2012 
Responsible-Changed-Why:  
This is really a geom bug, not an isp bug. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=159414 
>Unformatted:
