]> git.baikalelectronics.ru Git - kernel.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)
commit34cba52004739c13a8e404bf00ce7b264b21986f
tree5307db8d73697cc8d13d6f2d104238334b17618e
parentac4c1b9374430b49117d1d797158cdb7bcd16538
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