-
Notifications
You must be signed in to change notification settings - Fork 712
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
efa: Fix CQ doorbell unmap on CQ destroy
[ Upstream commit 515a351 ] Remove the CQ doorbell offset on munmap to get the aligned address provided by mmap. When using the unaligned address IB core gets wrong VMA to its umap close callback with private data NULL so it doesn't drop the reference on the mmap entry. This means that we don't remove the entry from the mmap xarray and when requesting to close the device it fails because of open resources on it. Fixes: 94ed75b ("efa: CQ notifications support") Reviewed-by: Daniel Kranzdorf <dkkranzd@amazon.com> Reviewed-by: Firas Jahjah <firasj@amazon.com> Signed-off-by: Yonatan Nachum <ynachum@amazon.com> Signed-off-by: Nicolas Morey <nmorey@suse.com>
- Loading branch information
1 parent
e157913
commit 06e8e85
Showing
2 changed files
with
9 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters