svn commit: r360687 - stable/11/sys/cam/ctl

Dimitry Andric dim at FreeBSD.org
Wed May 6 08:32:50 UTC 2020


Author: dim
Date: Wed May  6 08:32:49 2020
New Revision: 360687
URL: https://svnweb.freebsd.org/changeset/base/360687

Log:
  Redo r360682, now with only a minimal fix for misleading indentation:
  
  MFC r333465 (partial, by lwhsu):
  
  Fix build for platforms using GCC:
  
  [omitted] - Remove unused or dead store variable
  [omitted] - Remove unused function ctl_copyin_alloc
  - Add missing curly brackets, this seems a regression in r287720
  
  Reviewed by:	jhibbits
  Differential Revision:	https://reviews.freebsd.org/D15383

Modified:
  stable/11/sys/cam/ctl/ctl.c

Modified: stable/11/sys/cam/ctl/ctl.c
==============================================================================
--- stable/11/sys/cam/ctl/ctl.c	Wed May  6 08:24:47 2020	(r360686)
+++ stable/11/sys/cam/ctl/ctl.c	Wed May  6 08:32:49 2020	(r360687)
@@ -8591,10 +8591,11 @@ ctl_hndl_per_res_out_on_other_sc(union ctl_io *io)
 		if (lun->pr_res_type != SPR_TYPE_EX_AC &&
 		    lun->pr_res_type != SPR_TYPE_WR_EX &&
 		    (lun->MODE_CTRL.queue_flags & SCP_NUAR) == 0) {
-			for (i = softc->init_min; i < softc->init_max; i++)
+			for (i = softc->init_min; i < softc->init_max; i++) {
 				if (i == residx || ctl_get_prkey(lun, i) == 0)
 					continue;
 				ctl_est_ua(lun, i, CTL_UA_RES_RELEASE);
+			}
 		}
 
 		lun->flags &= ~CTL_LUN_PR_RESERVED;


More information about the svn-src-stable mailing list