RDMA/hns: Fix the state of rereg mr
authorYixian Liu <liuyixian@huawei.com>
Sun, 3 Feb 2019 08:13:04 +0000 (16:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 08:21:22 +0000 (09:21 +0100)
commitcc84d7b1b215758ed2f48f03621a8945c8dd7ef9
tree6941c4a7644de59834b6bc02c2414bbf40e60e09
parent53ac199202e3d2f9560a977877b03619f8d36a8a
RDMA/hns: Fix the state of rereg mr

[ Upstream commit ab22bf05216a6bb4812448f3a8609489047cf311 ]

The state of mr after reregister operation should be set to valid
state. Otherwise, it will keep the same as the state before reregistered.

Signed-off-by: Yixian Liu <liuyixian@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/hns/hns_roce_hw_v2.c