From owner-freebsd-bugs@FreeBSD.ORG Thu Jun 23 12:10:13 2011 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (unknown [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5F21F1065672 for ; Thu, 23 Jun 2011 12:10:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 4EBDD8FC1C for ; Thu, 23 Jun 2011 12:10:13 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p5NCACj7078007 for ; Thu, 23 Jun 2011 12:10:12 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p5NCACks078006; Thu, 23 Jun 2011 12:10:12 GMT (envelope-from gnats) Date: Thu, 23 Jun 2011 12:10:12 GMT Message-Id: <201106231210.p5NCACks078006@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: "Eugene M. Zheganin" Cc: Subject: Re: kern/157534: [mpt] freeze when disk is removed/died from geom_mirror/zfs raid X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Eugene M. Zheganin" List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Jun 2011 12:10:13 -0000 The following reply was made to PR kern/157534; it has been noted by GNATS. From: "Eugene M. Zheganin" To: bug-followup@FreeBSD.org, eugene@zhegan.in Cc: Subject: Re: kern/157534: [mpt] freeze when disk is removed/died from geom_mirror/zfs raid Date: Thu, 23 Jun 2011 17:42:12 +0600 The thing is, that after disk removal the controller sends two types of events: 0x12 and 0x16. According to the mpi_ioc.h the first is MPI_EVENT_SAS_PHY_LINK_STATUS and the second is MPI_EVENT_SAS_DISCOVERY. Furthermore, according to the kernel messages on the console during the drive removal/attaching, and the code in mpt_cam.c, mpt_cam_event() does nothing to handle these events (they both are handled by 'default:' section). I think this leads to freezing. Comparing to the linux mpt code, I can say that Linux kernel does nothing about MPI_EVENT_SAS_PHY_LINK_STATUS, but it definitely does something (which my skills are to low to understand to) about MPI_EVENT_SAS_DISCOVERY. Anyway, my skills are to low to correct this. IPKVM screenshots of drive removal and insertion (shot 1 - removal, shot 3 - insertion): http://unix.zhegan.in/files/mpt_cam_event01.jpeg http://unix.zhegan.in/files/mpt_cam_event02.jpeg http://unix.zhegan.in/files/mpt_cam_event03.jpeg