Author: mav Date: Sun Feb 26 19:25:33 2017 New Revision: 314308 URL: https://svnweb.freebsd.org/changeset/base/314308
Log: Fix LUN enabling on wildcard target, as done by CTL. MFC after: 2 weeks Modified: head/sys/dev/aic7xxx/aic79xx.c head/sys/dev/aic7xxx/aic7xxx.c Modified: head/sys/dev/aic7xxx/aic79xx.c ============================================================================== --- head/sys/dev/aic7xxx/aic79xx.c Sun Feb 26 19:23:03 2017 (r314307) +++ head/sys/dev/aic7xxx/aic79xx.c Sun Feb 26 19:25:33 2017 (r314308) @@ -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: head/sys/dev/aic7xxx/aic7xxx.c ============================================================================== --- head/sys/dev/aic7xxx/aic7xxx.c Sun Feb 26 19:23:03 2017 (r314307) +++ head/sys/dev/aic7xxx/aic7xxx.c Sun Feb 26 19:25:33 2017 (r314308) @@ -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 _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"