]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
[net/9p] Handle Zero Copy TREAD/RERROR case in !dotl case.
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Wed, 2 Feb 2011 04:04:59 +0000 (20:04 -0800)
committerEric Van Hensbergen <ericvh@gmail.com>
Tue, 15 Mar 2011 14:57:36 +0000 (09:57 -0500)
commitca41bb3e21d7b3cb2079e225e3a7e62e6c776518
treefa65d03bf9d4e8839631ae4a295ab3f1b7ba3e06
parent2c66523fd290edeea26cbe8cedd0af167d0f7e5f
[net/9p] Handle Zero Copy TREAD/RERROR case in !dotl case.

This takes care of copying out error buffers from user buffer
payloads when we are using zero copy.  This happens because the
only payload buffer the server has to respond to the request is
the user buffer given for the zero copy read.

Because we only use zerocopy when the amount of data to transfer
is greater than a certain size (currently 4K) and error strings are
limited to ERRMAX (currently 128) we don't need to worry about there
being sufficient space for the error to fit in the payload.

Signed-off-by: Venkateswararao Jujjuri <jvrao@linux.vnet.ibm.com>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
net/9p/client.c