svn commit: r333158 - head/sys/dev/mpr
Alexander Motin
mav at FreeBSD.org
Wed May 2 02:41:10 UTC 2018
Author: mav
Date: Wed May 2 02:41:09 2018
New Revision: 333158
URL: https://svnweb.freebsd.org/changeset/base/333158
Log:
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.
MFC after: 1 week
Sponsored by: iXsystems, Inc.
Modified:
head/sys/dev/mpr/mpr_mapping.c
Modified: head/sys/dev/mpr/mpr_mapping.c
==============================================================================
--- head/sys/dev/mpr/mpr_mapping.c Wed May 2 01:32:34 2018 (r333157)
+++ head/sys/dev/mpr/mpr_mapping.c Wed May 2 02:41:09 2018 (r333158)
@@ -2385,6 +2385,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