svn commit: r333415 - stable/11/sys/dev/mpr

Alexander Motin mav at FreeBSD.org
Wed May 9 15:22:41 UTC 2018


Author: mav
Date: Wed May  9 15:22:40 2018
New Revision: 333415
URL: https://svnweb.freebsd.org/changeset/base/333415

Log:
  MFC r333158:
  Clean enclosure_table when resetting num_enc_table_entries to zero.
  
  Garbage left there by r325363 in some scenarios found to lead to later
  enclosure mapping failures.
  
  Approved by:	re@ (gjb)
  Sponsored by:	iXsystems, Inc.

Modified:
  stable/11/sys/dev/mpr/mpr_mapping.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/mpr/mpr_mapping.c
==============================================================================
--- stable/11/sys/dev/mpr/mpr_mapping.c	Wed May  9 15:20:39 2018	(r333414)
+++ stable/11/sys/dev/mpr/mpr_mapping.c	Wed May  9 15:22:40 2018	(r333415)
@@ -2388,6 +2388,8 @@ fail:
 		 * sc->mapping_table volumes tooi
 		 */
 	}
+	for (enc_idx = 0; enc_idx < sc->num_enc_table_entries; enc_idx++)
+		_mapping_clear_enc_entry(sc->enclosure_table + enc_idx);
 	sc->num_enc_table_entries = 0;
 	return (false);
 }


More information about the svn-src-all mailing list