IB/hfi1: Immediately remove invalid memory from hardware
stable inclusion from stable-v5.10.166 commit 6ce4382bd1377dadba4c2b3ce23ca976e333b95f category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I7TH9O Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=6ce4382bd1377dadba4c2b3ce23ca976e333b95f -------------------------------- [ Upstream commit 1c7edde1 ] When a user expected receive page is unmapped, it should be immediately removed from hardware rather than depend on a reaction from user space. Fixes: 2677a768 ("IB/hfi1: Fix memory leak during unexpected shutdown") Signed-off-by: NDean Luick <dean.luick@cornelisnetworks.com> Signed-off-by: NDennis Dalessandro <dennis.dalessandro@cornelisnetworks.com> Link: https://lore.kernel.org/r/167328548663.1472310.7871808081861622659.stgit@awfm-02.cornelisnetworks.comSigned-off-by: NLeon Romanovsky <leon@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: Nsanglipeng <sanglipeng1@jd.com>
Showing
想要评论请 注册 或 登录