diff options
| author | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-05 14:53:35 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2026-06-09 20:57:36 +0300 |
| commit | bade9a3150d44ed20b8c6484c4c8a943b7289abb (patch) | |
| tree | 9775daff0244aa0dd147c6d1bc75d8a7ce9c66af /include/linux/debugobjects.h | |
| parent | 54bf38b27afc08a0eb6b732f9c14eb8a4bcb66b5 (diff) | |
| download | linux-bade9a3150d44ed20b8c6484c4c8a943b7289abb.tar.xz | |
IB/mlx4: Fill in the access_flags if IB_MR_REREG_ACCESS is not specified
Sashiko noticed mlx4 was using whatever random access flags were provided
when IB_MR_REREG_ACCESS is not used. Since IB_MR_REREG_TRANS needs
access_flags it used the random ones which means it doesn't work sensibly
if userspace provides only IB_MR_REREG_TRANS.
Keep track of the current access_flag of the MR and use it if the user
does not specify one.
Also fixup a little confusion around mmr.access, it is the HW access flags
so the convert_access() was missing. But nothing reads this by the time
rereg_mr can happen.
Fixes: 9376932d0c26 ("IB/mlx4_ib: Add support for user MR re-registration")
Link: https://patch.msgid.link/r/0-v1-29ca7a402625+ddd6-mlx4_rereg_flags_jgg@nvidia.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
