Date: Fri, 23 Oct 2015 10:39:43 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r289819 - head/sys/cam/ctl Message-ID: <201510231039.t9NAdh2L029227@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Fri Oct 23 10:39:43 2015 New Revision: 289819 URL: https://svnweb.freebsd.org/changeset/base/289819 Log: Fix LUN disable in CAM broken at r285155. MFC after: 1 week Modified: head/sys/cam/ctl/scsi_ctl.c Modified: head/sys/cam/ctl/scsi_ctl.c ============================================================================== --- head/sys/cam/ctl/scsi_ctl.c Fri Oct 23 10:05:43 2015 (r289818) +++ head/sys/cam/ctl/scsi_ctl.c Fri Oct 23 10:39:43 2015 (r289819) @@ -1879,7 +1879,7 @@ ctlfe_lun_disable(void *arg, int lun_id) path = lun_softc->periph->path; - if ((xpt_path_target_id(path) == 0) + if ((xpt_path_target_id(path) == softc->target_id) && (xpt_path_lun_id(path) == lun_id)) { break; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201510231039.t9NAdh2L029227>