]> git.baikalelectronics.ru Git - kernel.git/commit
xprtrdma: Fix bc_max_slots return value
authorChuck Lever <chuck.lever@oracle.com>
Mon, 19 Aug 2019 22:50:16 +0000 (18:50 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 21 Aug 2019 18:35:49 +0000 (14:35 -0400)
commit8e6d3fcbdadf1a426bae8c00cf10232a870527c6
treefa2b178509ba69fe65710cc5365177e28b47ca9f
parent82e8a4369d4628af4f3e68a564f6bf47a1aa5f93
xprtrdma: Fix bc_max_slots return value

For the moment the returned value just happens to be correct because
the current backchannel server implementation does not vary the
number of credits it offers. The spec does permit this value to
change during the lifetime of a connection, however.

The actual maximum is fixed for all RPC/RDMA transports, because
each transport instance has to pre-allocate the resources for
processing BC requests. That's the value that should be returned.

Fixes: 93e356440fbc ("SUNRPC: Fix up backchannel slot table ... ")
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
net/sunrpc/xprtrdma/backchannel.c