Fix LUN enabling on wildcard target, as done by CTL.

MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2017-02-26 19:25:33 +00:00
parent b371466e29
commit 92e10562d4
2 changed files with 4 additions and 2 deletions

View File

@ -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) {
/*

View File

@ -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