Print this page
curzone reality check and teardown changes to use the RIGHT zone
*** 4105,4115 ****
void
rfs4_clean_state_exi(struct exportinfo *exi)
{
nfs4_srv_t *nsrv4;
! nsrv4 = zone_getspecific(rfs4_zone_key, curzone);
mutex_enter(&nsrv4->state_lock);
if (nsrv4->nfs4_server_state == NULL) {
mutex_exit(&nsrv4->state_lock);
return;
--- 4105,4117 ----
void
rfs4_clean_state_exi(struct exportinfo *exi)
{
nfs4_srv_t *nsrv4;
! /* curzone mightn't be exi_zone, so use exi_zone instead. */
! ASSERT(exi->exi_zone == curzone || curzone == global_zone);
! nsrv4 = zone_getspecific(rfs4_zone_key, exi->exi_zone);
mutex_enter(&nsrv4->state_lock);
if (nsrv4->nfs4_server_state == NULL) {
mutex_exit(&nsrv4->state_lock);
return;