From owner-cvs-src@FreeBSD.ORG Mon Jun 5 22:59:50 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97EAD16CF10; Mon, 5 Jun 2006 22:24:00 +0000 (UTC) (envelope-from mjacob@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 663DF43D46; Mon, 5 Jun 2006 22:24:00 +0000 (GMT) (envelope-from mjacob@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id k55MMEDl061758; Mon, 5 Jun 2006 22:22:14 GMT (envelope-from mjacob@repoman.freebsd.org) Received: (from mjacob@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id k55MMEO0061757; Mon, 5 Jun 2006 22:22:14 GMT (envelope-from mjacob) Message-Id: <200606052222.k55MMEO0061757@repoman.freebsd.org> From: Matt Jacob Date: Mon, 5 Jun 2006 22:22:14 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/cam cam_ccb.h cam_xpt.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Jun 2006 22:59:51 -0000 mjacob 2006-06-05 22:22:14 UTC FreeBSD src repository Modified files: sys/cam cam_ccb.h cam_xpt.c Log: Add PIM_SEQSCAN for HBA misc flags and code that understands what to do with it. This forces us to scan targets sequentially, not in parallel. The reason we might want to do this is that SPI negotiation might not work right at the SIM level if we try to do it in parallel. We *could* fix this for each SIM where this is broken, but it's a lot harder to do that when we can simply ask CAM to probe sequentially. If PIM_SEQSCAN is not set (default), the original behaviour for probing is unchanged. LUN probing is still done in parallel for each target in either case. While we're at it, clean up some resource leakage for error cases. Reviewed by: ken, scott, scsi@ MFC after: 1 week Revision Changes Path 1.32 +2 -1 src/sys/cam/cam_ccb.h 1.160 +79 -32 src/sys/cam/cam_xpt.c