]> git.baikalelectronics.ru Git - kernel.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)
commitc562c8fa318e0a478b70922a45414b08c7c23d12
treefa65d03bf9d4e8839631ae4a295ab3f1b7ba3e06
parentb4a502f90cd8256591e54a442f1256f2613eadc8
[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