The following reply was made to PR kern/157534; it has been noted by GNATS.
From: "Eugene M. Zheganin" <e...@norma.perm.ru> To: bug-follo...@freebsd.org, eug...@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 _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"