• Chuck Lever's avatar
    svcrdma: Normalize Send page handling · 2a1e4f21
    Chuck Lever authored
    Currently svc_rdma_sendto() migrates xdr_buf pages into a separate
    page list and NULLs out a bunch of entries in rq_pages while the
    pages are under I/O. The Send completion handler then frees those
    pages later.
    
    Instead, let's wait for the Send completion, then handle page
    releasing in the nfsd thread. I'd like to avoid the cost of 250+
    put_page() calls in the Send completion handler, which is single-
    threaded.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    2a1e4f21
svc_rdma_sendto.c 29.8 KB