summaryrefslogtreecommitdiff
path: root/net/sunrpc/xprtrdma/transport.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2019-10-09 20:07:48 +0300
committerAnna Schumaker <Anna.Schumaker@Netapp.com>2019-10-24 17:30:40 +0300
commit9d2da4ff00f37de17fc25c23e50463b58b9e8fec (patch)
tree5a5cb6010f4e06515f8c7709003f40208e8f593e /net/sunrpc/xprtrdma/transport.c
parentc3700780a096fc66467c81076ddf7f3f11d639b5 (diff)
downloadlinux-9d2da4ff00f37de17fc25c23e50463b58b9e8fec.tar.xz
xprtrdma: Manage MRs in context of a single connection
MRs are now allocated on demand so we can safely throw them away on disconnect. This way an idle transport can disconnect and it won't pin hardware MR resources. Two additional changes: - Now that all MRs are destroyed on disconnect, there's no need to check during header marshaling if a req has MRs to recycle. Each req is sent only once per connection, and now rl_registered is guaranteed to be empty when rpcrdma_marshal_req is invoked. - Because MRs are now destroyed in a WQ_MEM_RECLAIM context, they also must be allocated in a WQ_MEM_RECLAIM context. This reduces the likelihood that device driver memory allocation will trigger memory reclaim during NFS writeback. Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/transport.c')
0 files changed, 0 insertions, 0 deletions