Frank Filz has uploaded this change for review.
Modify get_buffer_for_io_response to allocate buffer unless asked not to
Originally get_buffer_for_io_response only allocated a buffer if RDMA was
in use. This results in a confusing API.
The new version allocates a buffer unless asked not to for zero copy
purposes. An RDMA buffer is still allocated if required.
Comments clarify that op_ctx->is_rdma_buff_used can be referenced to
determine if the allocated buffer was an RDMA one or not.
Change-Id: I579d65a7c517892886c8fe31cfb791f4c030171f
Signed-off-by: Frank S. Filz <ffilzlnx@mindspring.com>
---
M src/FSAL/fsal_helper.c
M src/Protocols/NFS/nfs3_readdir.c
M src/Protocols/NFS/nfs3_readdirplus.c
M src/Protocols/NFS/nfs4_op_read.c
M src/Protocols/NFS/nfs4_op_readdir.c
M src/RPCAL/rpc_tools.c
M src/include/fsal.h
M src/include/gsh_rpc.h
8 files changed, 94 insertions(+), 70 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/61/1231461/1
To view, visit change 1231461. To unsubscribe, or for help writing mail filters, visit settings.