]> git.baikalelectronics.ru Git - kernel.git/commit
net/9p: Add waitq to VirtIO transport.
authorVenkateswararao Jujjuri (JV) <jvrao@linux.vnet.ibm.com>
Thu, 30 Sep 2010 01:33:41 +0000 (18:33 -0700)
committerEric Van Hensbergen <ericvh@gmail.com>
Thu, 28 Oct 2010 14:08:48 +0000 (09:08 -0500)
commit2bf2747a572d27cdf9acbc1ebc601399cc9d1ca6
tree44292212cecafac6ed870812b882b9af545bdaa6
parent4c63fba7e0221e515c5349b40f9f6b175dadb9f7
net/9p: Add waitq to VirtIO transport.

If there is not enough space for the PDU on the VirtIO ring, current
code returns -EIO propagating the error to user.

This patch introduced a wqit_queue on the channel, and lets the process
wait on this queue until VirtIO ring frees up.

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