diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2015-01-13 17:03:28 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2015-01-15 21:01:47 +0100 |
commit | 61edbcb7c7f4efb65df4ad793d007237f9fa311f (patch) | |
tree | fc0bc3b1ff1b5f1ad72bda0f4165faecb418c1e7 /net/802 | |
parent | svcrdma: Plant reader function in struct svcxprt_rdma (diff) | |
download | linux-61edbcb7c7f4efb65df4ad793d007237f9fa311f.tar.xz linux-61edbcb7c7f4efb65df4ad793d007237f9fa311f.zip |
svcrdma: rc_position sanity checking
An RPC/RDMA client may send large RPC arguments via a read
list. This is a list of scatter/gather elements which convey
RPC call arguments too large to fit in a small RDMA SEND.
Each entry in the read list has a "position" field, whose value is
the byte offset in the XDR stream where the data in that entry is to
be inserted. Entries which share the same "position" value make up
the same RPC argument. The receiver inserts entries with the same
position field value in list order into the XDR stream.
Currently the Linux NFS/RDMA server cannot handle receiving read
chunks in more than one position, mostly because no current client
sends read lists with elements in more than one position. As a
sanity check, ensure that all received chunks have the same
"rc_position."
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/802')
0 files changed, 0 insertions, 0 deletions