9P: Add cancelled() to the transport functions.
authorSimon Derr <simon.derr@bull.net>
Fri, 21 Jun 2013 13:32:43 +0000 (15:32 +0200)
committerEric Van Hensbergen <ericvh@gmail.com>
Mon, 8 Jul 2013 03:18:18 +0000 (22:18 -0500)
commit80b45261a0b263536b043c5ccfc4ba4fc27c2acc
treeb4d06110f4f121b8e2c26e521c164f5c668e2cc0
parent1cff33069a4a1ac9ed080756113ecd17ad408282
9P: Add cancelled() to the transport functions.

RDMA needs to post a buffer for each incoming reply.
Hence it needs to keep count of these and needs to be
aware of whether a flushed request has received a reply
or not.

This patch adds the cancelled() callback to the transport modules.
It is called when RFLUSH has been received and that the corresponding
request will never receive a reply.

Signed-off-by: Simon Derr <simon.derr@bull.net>
Signed-off-by: Eric Van Hensbergen <ericvh@gmail.com>
include/net/9p/transport.h
net/9p/client.c
net/9p/trans_rdma.c