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