]> asedeno.scripts.mit.edu Git - linux.git/commit
xprtrdma: Make sendctx queue lifetime the same as connection lifetime
authorChuck Lever <chuck.lever@oracle.com>
Fri, 3 Jan 2020 16:56:32 +0000 (11:56 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 15 Jan 2020 15:54:32 +0000 (10:54 -0500)
commitcb586decbb88fcd068116af2d4e1e3e2e86978d6
tree5307db8d73697cc8d13d6f2d104238334b17618e
parent2e87036814290887a188652a893ab968bad9fad7
xprtrdma: Make sendctx queue lifetime the same as connection lifetime

The size of the sendctx queue depends on the value stored in
ia->ri_max_send_sges. This value is determined by querying the
underlying device.

Eventually, rpcrdma_ia_open() and rpcrdma_ep_create() will be called
in the connect worker rather than at transport set-up time. The
underlying device will not have been chosen device set-up time.

The sendctx queue will thus have to be created after the underlying
device has been chosen via address and route resolution; in other
words, in the connect worker.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
include/trace/events/rpcrdma.h
net/sunrpc/xprtrdma/verbs.c