Skip to content

Commit d5440e2

Browse files
chuckleveramschuma-ntap
authored andcommitted
xprtrdma: Enable pad optimization
The Linux NFS/RDMA server used to reject NFSv3 WRITE requests when pad optimization was enabled. That bug was fixed by commit e560e3b ("svcrdma: Add zero padding if the client doesn't send it"). We can now enable pad optimization on the client, which helps performance and is supported now by both Linux and Solaris servers. Signed-off-by: Chuck Lever <[email protected]> Signed-off-by: Anna Schumaker <[email protected]>
1 parent 5c166be commit d5440e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sunrpc/xprtrdma/transport.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ static unsigned int xprt_rdma_max_inline_read = RPCRDMA_DEF_INLINE;
7373
static unsigned int xprt_rdma_max_inline_write = RPCRDMA_DEF_INLINE;
7474
static unsigned int xprt_rdma_inline_write_padding;
7575
static unsigned int xprt_rdma_memreg_strategy = RPCRDMA_FRMR;
76-
int xprt_rdma_pad_optimize = 0;
76+
int xprt_rdma_pad_optimize = 1;
7777

7878
#ifdef RPC_DEBUG
7979

0 commit comments

Comments
 (0)