Print this page
patch lower-case-segops

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/nfs/nfs4_vnops.c
          +++ new/usr/src/uts/common/fs/nfs/nfs4_vnops.c
↓ open down ↓ 11049 lines elided ↑ open up ↑
11050 11050           * A process may not change zones if it has NFS pages mmap'ed
11051 11051           * in, so we can't legitimately get here from the wrong zone.
11052 11052           */
11053 11053          ASSERT(nfs_zone() == VTOMI4(vp)->mi_zone);
11054 11054  
11055 11055          rp = VTOR4(vp);
11056 11056  
11057 11057          /*
11058 11058           * The way that the address space of this process deletes its mapping
11059 11059           * of this file is via the following call chains:
11060      -         * - as_free()->SEGOP_UNMAP()/segvn_unmap()->VOP_DELMAP()/nfs4_delmap()
11061      -         * - as_unmap()->SEGOP_UNMAP()/segvn_unmap()->VOP_DELMAP()/nfs4_delmap()
     11060 +         * - as_free()->segop_unmap()/segvn_unmap()->VOP_DELMAP()/nfs4_delmap()
     11061 +         * - as_unmap()->segop_unmap()/segvn_unmap()->VOP_DELMAP()/nfs4_delmap()
11062 11062           *
11063 11063           * With the use of address space callbacks we are allowed to drop the
11064 11064           * address space lock, a_lock, while executing the NFS operations that
11065 11065           * need to go over the wire.  Returning EAGAIN to the caller of this
11066 11066           * function is what drives the execution of the callback that we add
11067 11067           * below.  The callback will be executed by the address space code
11068 11068           * after dropping the a_lock.  When the callback is finished, since
11069 11069           * we dropped the a_lock, it must be re-acquired and segvn_unmap()
11070 11070           * is called again on the same segment to finish the rest of the work
11071 11071           * that needs to happen during unmapping.
↓ open down ↓ 4924 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX