kern/157534: [mpt] freeze when disk is removed/died from
Eugene M. Zheganin
emz at norma.perm.ru
Thu Jun 23 12:10:13 UTC 2011
The following reply was made to PR kern/157534; it has been noted by GNATS.
From: "Eugene M. Zheganin" <emz at norma.perm.ru>
To: bug-followup at FreeBSD.org, eugene at zhegan.in
Subject: Re: kern/157534: [mpt] freeze when disk is removed/died from geom_mirror/zfs
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
Anyway, my skills are to low to correct this.
IPKVM screenshots of drive removal and insertion (shot 1 - removal, shot
3 - insertion):
More information about the freebsd-bugs