Print this page
Revert "NEX-20260 NFS hung in transitional state when RSF marks it maintenance"
This reverts commit 9bf6e5f740709f470ba350df64cd9f2c93f3f0a7.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs4_state.c
          +++ new/usr/src/uts/common/fs/nfs/nfs4_state.c
↓ open down ↓ 1517 lines elided ↑ open up ↑
1518 1518          /* reset the "first NFSv4 request" status */
1519 1519          nsrv4->seen_first_compound = 0;
1520 1520  
1521 1521          dbp = nsrv4->nfs4_server_state;
1522 1522          nsrv4->nfs4_server_state = NULL;
1523 1523  
1524 1524          rw_destroy(&nsrv4->rfs4_findclient_lock);
1525 1525  
1526 1526          /* First stop all of the reaper threads in the database */
1527 1527          rfs4_database_shutdown(dbp);
     1528 +
1528 1529          /*
1529 1530           * WARNING: There may be consumers of the rfs4 database still
1530 1531           * active as we destroy these.  IF that's the case, consider putting
1531 1532           * some of their _zone_fini()-like functions into the zsd key as
1532 1533           * ~~SHUTDOWN~~ functions instead of ~~DESTROY~~ functions.  We can
1533 1534           * maintain some ordering guarantees better that way.
1534 1535           */
1535 1536          /* Now destroy/release the database tables */
1536 1537          rfs4_database_destroy(dbp);
1537 1538  
↓ open down ↓ 2605 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX