diff options
author | mav <mav@FreeBSD.org> | 2015-10-05 08:16:10 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2015-10-05 08:16:10 +0000 |
commit | df85f2e52d7764efbf42714f778628c84114f7d0 (patch) | |
tree | 03be66425973ff5f61bd2e437027311474e2249e /sys/dev/isp/isp_library.c | |
parent | 2df2e7b59b17e6fd90cf75a9821081a7ac775566 (diff) | |
download | FreeBSD-src-df85f2e52d7764efbf42714f778628c84114f7d0.zip FreeBSD-src-df85f2e52d7764efbf42714f778628c84114f7d0.tar.gz |
MFC r285146: Drop discovered targets when initiator role is disabled.
Diffstat (limited to 'sys/dev/isp/isp_library.c')
-rw-r--r-- | sys/dev/isp/isp_library.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/sys/dev/isp/isp_library.c b/sys/dev/isp/isp_library.c index b56b1dc..2f7dc4e 100644 --- a/sys/dev/isp/isp_library.c +++ b/sys/dev/isp/isp_library.c @@ -603,9 +603,6 @@ isp_fc_change_role(ispsoftc_t *isp, int chan, int new_role) return (ENXIO); } if (chan == 0) { -#ifdef ISP_TARGET_MODE - isp_del_all_wwn_entries(isp, chan); -#endif isp_clear_commands(isp); isp_reset(isp, 0); if (isp->isp_state != ISP_RESETSTATE) { @@ -626,8 +623,6 @@ isp_fc_change_role(ispsoftc_t *isp, int chan, int new_role) uint8_t qe[QENTRY_LEN], *scp; ISP_MEMZERO(qe, QENTRY_LEN); - /* Acquire Scratch */ - if (FC_SCRATCH_ACQUIRE(isp, chan)) { return (EBUSY); } @@ -671,12 +666,6 @@ isp_fc_change_role(ispsoftc_t *isp, int chan, int new_role) MEMORYBARRIER(isp, SYNC_SFORCPU, QENTRY_LEN, QENTRY_LEN, chan); isp_get_vp_modify(isp, (vp_modify_t *)&scp[QENTRY_LEN], vp); -#ifdef ISP_TARGET_MODE - isp_del_all_wwn_entries(isp, chan); -#endif - /* - * Release Scratch - */ FC_SCRATCH_RELEASE(isp, chan); if (vp->vp_mod_status != VP_STS_OK) { |