• Neil Brown's avatar
    [PATCH] kNFSd: Support zero-copy read for NFSD · 835a922a
    Neil Brown authored
    From Hirokazu Takahashi <taka@valinux.co.jp>
    
    This patch changes read and readdir in nfsd.
    
    read:
      If the file supports readpage, we use it to collect pages out of the page
      cache and to attache them directly to the outgoing nfs reply.
      The reduces the number of copies by one, and if the filesystem/device
      driver didn't copy the data, and if the network card can support not copying
      the data, then you get zero-copy reads.
    
    readdir:
      A separate page is used for stoing the readdir response so that a fill
      PAGE_SIZE bytes of reply can be supported.
    835a922a
nfsxdr.c 10.8 KB