Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/mlx5: Uncacheable mkey has neither rb_key or cache_ent

As some mkeys can't be modified with UMR due to some UMR limitations,
like the size of translation that can be updated, not all user mkeys can
be cached.

Fixes: dd1b913fb0d0 ("RDMA/mlx5: Cache all user cacheable mkeys on dereg MR flow")
Signed-off-by: Or Har-Toov <ohartoov@nvidia.com>
Link: https://lore.kernel.org/r/f2742dd934ed73b2d32c66afb8e91b823063880c.1712140377.git.leon@kernel.org
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Or Har-Toov and committed by
Leon Romanovsky
0611a8e8 f10242b3

+1 -1
+1 -1
drivers/infiniband/hw/mlx5/mlx5_ib.h
··· 643 643 unsigned int ndescs; 644 644 struct wait_queue_head wait; 645 645 refcount_t usecount; 646 - /* User Mkey must hold either a rb_key or a cache_ent. */ 646 + /* Cacheable user Mkey must hold either a rb_key or a cache_ent. */ 647 647 struct mlx5r_cache_rb_key rb_key; 648 648 struct mlx5_cache_ent *cache_ent; 649 649 };