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.
This commit is contained in:
mav 2018-05-02 02:41:09 +00:00
parent 574503cb15
commit d5b44dd10e

View File

@ -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);
}