diff options
| author | Chengchang Tang <tangchengchang@huawei.com> | 2024-09-27 18:33:22 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-12-05 14:02:02 +0100 |
| commit | 86092a4e46d161d24f8106df082e24b8efe87382 (patch) | |
| tree | 1d6ff6219d17e3745ee8d0d0ad96d3d26fefa92a /rust/kernel/alloc | |
| parent | 12b63e2260f5715bfddffe274c642b9e67178504 (diff) | |
| download | linux-86092a4e46d161d24f8106df082e24b8efe87382.tar.gz linux-86092a4e46d161d24f8106df082e24b8efe87382.tar.bz2 linux-86092a4e46d161d24f8106df082e24b8efe87382.zip | |
RDMA/core: Provide rdma_user_mmap_disassociate() to disassociate mmap pages
[ Upstream commit 51976c6cd786151b6a1bdf8b8b3334beac0ba99c ]
Provide a new api rdma_user_mmap_disassociate() for drivers to
disassociate mmap pages for a device.
Since drivers can now disassociate mmaps by calling this api,
introduce a new disassociation_lock to specifically prevent
races between this disassociation process and new mmaps. And
thus the old hw_destroy_rwsem is not needed in this api.
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20240927103323.1897094-2-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Stable-dep-of: 615b94746a54 ("RDMA/hns: Disassociate mmap pages for all uctx when HW is being reset")
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
