]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
nvme-rdma: unconditionally recycle the request mr
authorSagi Grimberg <sagi@grimberg.me>
Wed, 5 Jul 2017 06:56:13 +0000 (09:56 +0300)
committerSagi Grimberg <sagi@grimberg.me>
Thu, 6 Jul 2017 06:49:43 +0000 (09:49 +0300)
commit842594c8775b585c58459e044708c0335b6aa6b7
tree9e2c791f916f7e7d9c6e0c839b4dd0b14e4aefc9
parentd09f2b45f346f0a9e5e1b5fcea531b1b393671dc
nvme-rdma: unconditionally recycle the request mr

When our RDMA queue-pair is torn down with high load
of I/O traffic, we have no way of knowing if the
memory region was actually registered by the reg_mr
work request as it completion flushes with error (hw
might have done it or not).

So in order to not deal with all this uncertanty, we
simply recycle the MR in reinit_request.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/host/rdma.c