From owner-cvs-src-old@FreeBSD.ORG Fri Feb 18 17:02:13 2011 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B5AA110656B0 for ; Fri, 18 Feb 2011 17:02:13 +0000 (UTC) (envelope-from ken@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id A1DFB8FC2E for ; Fri, 18 Feb 2011 17:02:13 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p1IH2DoZ022662 for ; Fri, 18 Feb 2011 17:02:13 GMT (envelope-from ken@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p1IH2Dro022661 for cvs-src-old@freebsd.org; Fri, 18 Feb 2011 17:02:13 GMT (envelope-from ken@repoman.freebsd.org) Message-Id: <201102181702.p1IH2Dro022661@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to ken@repoman.freebsd.org using -f From: "Kenneth D. Merry" Date: Fri, 18 Feb 2011 17:01:57 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/mps mps.c mps_sas.c mpsvar.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 18 Feb 2011 17:02:13 -0000 ken 2011-02-18 17:01:57 UTC FreeBSD src repository Modified files: sys/dev/mps mps.c mps_sas.c mpsvar.h Log: SVN rev 218811 on 2011-02-18 17:01:57Z by ken In the MPS driver, during device removal processing, don't assume that the controller firmware will return all of our commands. Instead, keep track of outstanding I/Os and return them to CAM once device removal processing completes. mpsvar.h: Declare the new "io_list" in the mps_softc. mps.c: Initialize the new "io_list" in the mps softc. mps_sas.c: o Track SCSI I/O requests on the io_list from the time of mpssas_action() through mpssas_scsiio_complete(). o Zero out the request structures used for device removal commands prior to filling them out. o Once the target reset task management function completes during device removal processing, assume any SCSI I/O commands that are still oustanding will never return from the controller, and process them manually. Submitted by: gibbs MFC after: 3 days Revision Changes Path 1.11 +1 -0 src/sys/dev/mps/mps.c 1.8 +24 -3 src/sys/dev/mps/mps_sas.c 1.6 +1 -0 src/sys/dev/mps/mpsvar.h