Skip to contentSkip to conversation

nfs41 do not allocate unused back channel pages

PATCH In review [email protected] 2 participants 2 messages Jan 26, 2010 – Jan 27, 2010

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs41 do not allocate unused back channel pages

From: Andy Adamson <[email protected]>

---
 net/sunrpc/svc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
net/sunrpc/svc.c +4 -0
index 538ca43..984be52 100644
@@ -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 (rqstp->rq_server->bc_xprt)
+		return 1;
+
 	pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply.
 				       * We assume one is at most one page
 				       */
Signature · 1 line
1.6.6
#1 lore raw
Quoted 12 lines · On Tue, 2010-01-26 at 12:55 -0500, [email protected] wrote:

From: Andy Adamson <[email protected]>

---
 net/sunrpc/svc.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
net/sunrpc/svc.c +0 -0
index 538ca43..984be52 100644

net/sunrpc/svc.c svc_init_buffer(struct svc_rqst *rqstp, unsigned int size) · line 515

Quoted 10 lines
net/sunrpc/svc.c +4 -0
@@ -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 (rqstp->rq_server->bc_xprt)
+		return 1;
+
 	pages = size / PAGE_SIZE + 1; /* extra page as we hold both request and reply.
 				       * We assume one is at most one page
 				       */

Argh! This one too fails completely to compile ifndef CONFIG_NFS_V4_1

Trond