]> www.infradead.org Git - users/jedix/linux-maple.git/commit
svcrdma: Add svc_rdma_get_context() API that is allowed to fail
authorChuck Lever <chuck.lever@oracle.com>
Wed, 26 Aug 2015 20:27:00 +0000 (14:27 -0600)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 31 Aug 2015 20:46:03 +0000 (14:46 -0600)
commit15b3ea37334ca66abb9106168cdc761538847cde
tree77a15ae44bb6f5d9af3bca7c47de5a19adae021a
parent79fb23957d401d7d61f6e8b5b13055f347ddfb4c
svcrdma: Add svc_rdma_get_context() API that is allowed to fail

[ Proposed for v4.4 ]

To support backward direction calls, I'm going to add an
svc_rdma_get_context() call in the client RDMA transport.

Called from ->buf_alloc(), we can't sleep waiting for memory.
So add an API that can get a server op_ctxt but won't sleep.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_transport.c