]> 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)
commitb743e9e0c110c2d66e5f9344e21eaf6594c766d9
tree5307db8d73697cc8d13d6f2d104238334b17618e
parente5331071c9e76036f3d5dbbc93fc02853591598b
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