From owner-svn-src-head@FreeBSD.ORG Fri Jul 12 21:36:29 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id EF44E600; Fri, 12 Jul 2013 21:36:29 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id E0FAF108B; Fri, 12 Jul 2013 21:36:29 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.7/8.14.7) with ESMTP id r6CLaTE9056938; Fri, 12 Jul 2013 21:36:29 GMT (envelope-from delphij@svn.freebsd.org) Received: (from delphij@localhost) by svn.freebsd.org (8.14.7/8.14.5/Submit) id r6CLaT2D056937; Fri, 12 Jul 2013 21:36:29 GMT (envelope-from delphij@svn.freebsd.org) Message-Id: <201307122136.r6CLaT2D056937@svn.freebsd.org> From: Xin LI Date: Fri, 12 Jul 2013 21:36:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r253288 - head/sys/dev/hptnr X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 21:36:30 -0000 Author: delphij Date: Fri Jul 12 21:36:29 2013 New Revision: 253288 URL: http://svnweb.freebsd.org/changeset/base/253288 Log: Merge from hpt27xx, r249468 (mav): MFprojects/camlock r248982: Stop abusing xpt_periph in random plases that really have no periph related to CCB, for example, bus scanning. NULL value is fine in such cases and it is correctly logged in debug messages as "noperiph". If at some point we need some real XPT periphs (alike to pmpX now), quite likely they will be per-bus, and not a single global instance as xpt_periph now. Modified: head/sys/dev/hptnr/hptnr_osm_bsd.c Modified: head/sys/dev/hptnr/hptnr_osm_bsd.c ============================================================================== --- head/sys/dev/hptnr/hptnr_osm_bsd.c Fri Jul 12 21:27:23 2013 (r253287) +++ head/sys/dev/hptnr/hptnr_osm_bsd.c Fri Jul 12 21:36:29 2013 (r253288) @@ -1347,7 +1347,7 @@ static int hpt_rescan_bus(void) { return(ENOMEM); } - if (xpt_create_path(&ccb->ccb_h.path, xpt_periph, cam_sim_path(vbus_ext->sim), + if (xpt_create_path(&ccb->ccb_h.path, NULL, cam_sim_path(vbus_ext->sim), CAM_TARGET_WILDCARD, CAM_LUN_WILDCARD) != CAM_REQ_CMP) { xpt_free_ccb(ccb);