Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 May 2018 15:22:40 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r333415 - stable/11/sys/dev/mpr
Message-ID:  <201805091522.w49FMen6012669@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201805091522.w49FMen6012669>