Replace the use of specially reserved pbufs in NFS's nfs_getpages() and
authorHiten Pandya <hmp@dragonflybsd.org>
Tue, 8 Jun 2004 02:58:52 +0000 (02:58 +0000)
committerHiten Pandya <hmp@dragonflybsd.org>
Tue, 8 Jun 2004 02:58:52 +0000 (02:58 +0000)
commitce71fd38bd4fa38795b227333ec378d792a50370
tree097a81a2138ca30bea13491e780ca0f36c65743f
parent7f859d6377b830d9dfdb030259c8a91866ed494b
Replace the use of specially reserved pbufs in NFS's nfs_getpages() and
nfs_putpages() with MSF BUFs.  The pbufs were only used for providing a
KVA start address for the UIO and then released, thus being temporary.

This will not give a very huge boost in performance just yet because
not enough MSF_BUFs being reserved due to shortages of available KVA.
Until we convert the BUF and DEV subsystems to utilize the MSF_BUF+XIO
combo, we are pretty much limited.

In the worst case, the thrashing effect of MSF_BUFs will be no more then
the temporary pbuf+qenter; instead, the MSF_BUF will not be able to
cache the page-list mappings and end up doing a pmap_qenter() everytime.

Discussed-with:  Matthew Dillon <dillon@backplane.com>
                 (Earlier version of these changes were tested by him)
sys/vfs/nfs/nfs_bio.c