Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Mar 2017 06:19:58 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r315139 - stable/11/sys/dev/aic7xxx
Message-ID:  <201703120619.v2C6JwUG088058@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Sun Mar 12 06:19:58 2017
New Revision: 315139
URL: https://svnweb.freebsd.org/changeset/base/315139

Log:
  MFC r314308: Fix LUN enabling on wildcard target, as done by CTL.

Modified:
  stable/11/sys/dev/aic7xxx/aic79xx.c
  stable/11/sys/dev/aic7xxx/aic7xxx.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/aic7xxx/aic79xx.c
==============================================================================
--- stable/11/sys/dev/aic7xxx/aic79xx.c	Sun Mar 12 06:18:41 2017	(r315138)
+++ stable/11/sys/dev/aic7xxx/aic79xx.c	Sun Mar 12 06:19:58 2017	(r315139)
@@ -9918,7 +9918,8 @@ ahd_handle_en_lun(struct ahd_softc *ahd,
 		u_int	   our_id;
 
 		our_id = ahd->our_id;
-		if (ccb->ccb_h.target_id != our_id) {
+		if (ccb->ccb_h.target_id != our_id
+		 && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) {
 			if ((ahd->features & AHD_MULTI_TID) != 0
 		   	 && (ahd->flags & AHD_INITIATORROLE) != 0) {
 				/*

Modified: stable/11/sys/dev/aic7xxx/aic7xxx.c
==============================================================================
--- stable/11/sys/dev/aic7xxx/aic7xxx.c	Sun Mar 12 06:18:41 2017	(r315138)
+++ stable/11/sys/dev/aic7xxx/aic7xxx.c	Sun Mar 12 06:19:58 2017	(r315139)
@@ -7347,7 +7347,8 @@ ahc_handle_en_lun(struct ahc_softc *ahc,
 	else
 		our_id = ahc->our_id_b;
 
-	if (ccb->ccb_h.target_id != our_id) {
+	if (ccb->ccb_h.target_id != our_id
+	 && ccb->ccb_h.target_id != CAM_TARGET_WILDCARD) {
 		/*
 		 * our_id represents our initiator ID, or
 		 * the ID of the first target to have an



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201703120619.v2C6JwUG088058>