]> git.baikalelectronics.ru Git - kernel.git/commit
xen/9pfs: send requests to the backend
authorStefano Stabellini <sstabellini@kernel.org>
Wed, 5 Apr 2017 19:03:59 +0000 (12:03 -0700)
committerJuergen Gross <jgross@suse.com>
Tue, 2 May 2017 09:11:37 +0000 (11:11 +0200)
commitc1ab8133ea8f2145b5cbe33d875d6904288e53ab
treee01c66999a80caf727f1f36acbdc574523830f61
parente01cba69d3a90c30637e28ea3a280aba015d26c1
xen/9pfs: send requests to the backend

Implement struct p9_trans_module create and close functions by looking
at the available Xen 9pfs frontend-backend connections. We don't expect
many frontend-backend connections, thus walking a list is OK.

Send requests to the backend by copying each request to one of the
available rings (each frontend-backend connection comes with multiple
rings). Handle the ring and notifications following the 9pfs
specification. If there are not enough free bytes on the ring for the
request, wait on the wait_queue: the backend will send a notification
after consuming more requests.

CC: groug@kaod.org
CC: jgross@suse.com
CC: Eric Van Hensbergen <ericvh@gmail.com>
CC: Ron Minnich <rminnich@sandia.gov>
CC: Latchesar Ionkov <lucho@ionkov.net>
CC: v9fs-developer@lists.sourceforge.net
Signed-off-by: Stefano Stabellini <stefano@aporeto.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
net/9p/trans_xen.c