diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2019-10-09 13:07:48 -0400 |
---|---|---|
committer | Anna Schumaker <Anna.Schumaker@Netapp.com> | 2019-10-24 10:30:40 -0400 |
commit | 9d2da4ff00f37de17fc25c23e50463b58b9e8fec (patch) | |
tree | 5a5cb6010f4e06515f8c7709003f40208e8f593e /kernel | |
parent | c3700780a096fc66467c81076ddf7f3f11d639b5 (diff) | |
download | linux-stable-9d2da4ff00f37de17fc25c23e50463b58b9e8fec.tar.gz linux-stable-9d2da4ff00f37de17fc25c23e50463b58b9e8fec.tar.bz2 linux-stable-9d2da4ff00f37de17fc25c23e50463b58b9e8fec.zip |
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 'kernel')
0 files changed, 0 insertions, 0 deletions