summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2017-03-12 06:19:58 +0000
committermav <mav@FreeBSD.org>2017-03-12 06:19:58 +0000
commit295baab0727dd2718c582aaac1597f1040bb2010 (patch)
tree871b2ae39d9207c0d5ef93b1ceeb7319fce04151
parent705288e1792003f13357f2ed05ef3fd9dd67aefe (diff)
downloadFreeBSD-src-295baab0727dd2718c582aaac1597f1040bb2010.zip
FreeBSD-src-295baab0727dd2718c582aaac1597f1040bb2010.tar.gz
MFC r314308: Fix LUN enabling on wildcard target, as done by CTL.
-rw-r--r--sys/dev/aic7xxx/aic79xx.c3
-rw-r--r--sys/dev/aic7xxx/aic7xxx.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/dev/aic7xxx/aic79xx.c b/sys/dev/aic7xxx/aic79xx.c
index 76b9c7e..958876a 100644
--- a/sys/dev/aic7xxx/aic79xx.c
+++ b/sys/dev/aic7xxx/aic79xx.c
@@ -9918,7 +9918,8 @@ ahd_handle_en_lun(struct ahd_softc *ahd, struct cam_sim *sim, union ccb *ccb)
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) {
/*
diff --git a/sys/dev/aic7xxx/aic7xxx.c b/sys/dev/aic7xxx/aic7xxx.c
index daf7aed..ec4908b 100644
--- a/sys/dev/aic7xxx/aic7xxx.c
+++ b/sys/dev/aic7xxx/aic7xxx.c
@@ -7347,7 +7347,8 @@ ahc_handle_en_lun(struct ahc_softc *ahc, struct cam_sim *sim, union ccb *ccb)
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
OpenPOWER on IntegriCloud