nfs41 do not allocate unused back channel pages

Signed-off-by: Andy Adamson <[email protected]>
[[email protected]: moved definition of svc_is_backchannel()
 into include/linux/sunrpc/bc_xprt.h.]
Signed-off-by: Trond Myklebust <[email protected]>
This commit is contained in:
Andy Adamson 2010-01-26 21:24:04 -05:00 • committed by Trond Myklebust
commit ba17686f62
2 changed files with 19 additions and 0 deletions

View file

@ -506,6 +506,10 @@ svc_init_buffer(struct svc_rqst *rqstp, unsigned int size)
{
unsigned int pages, arghi;
/* bc_xprt uses fore channel allocated buffers */
if (svc_is_backchannel(rqstp))
return 1;
pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply.
* We assume one is at most one page
*/