Skip to content
Commit 2f0f88f4 authored by Chuck Lever's avatar Chuck Lever
Browse files

SUNRPC: Add svc_rqst_replace_page() API



Replacing a page in rq_pages[] requires a get_page(), which is a
bus-locked operation, and a put_page(), which can be even more
costly.

To reduce the cost of replacing a page in rq_pages[], batch the
put_page() operations by collecting "freed" pages in a pagevec,
and then release those pages when the pagevec is full. This
pagevec is also emptied when each RPC completes.

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent c7e0b781
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment