RDMA/mlx5: Remove redundant work in struct mlx5_cache_ent
authorAharon Landau <aharonl@nvidia.com>
Tue, 15 Feb 2022 17:55:29 +0000 (19:55 +0200)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 23 Feb 2022 18:59:13 +0000 (14:59 -0400)
commit185b9826782a53529b2b57328a8f49b1d0cf8f8f
tree187ed6ecc1373c64b4b7e8b37cacc49068b2da8f
parent748663c8ccf6b2e5a800de19127c2cc1c4423fd2
RDMA/mlx5: Remove redundant work in struct mlx5_cache_ent

delayed_cache_work_func() and the cache_work_func() are both wrappers of
__cache_work_func(). Instead of having a special not delayed work, use the
delayed work with delay = 0.

Link: https://lore.kernel.org/r/18b6ae205e75f087aa4a2a05c81ea8b66d8d88dc.1644947594.git.leonro@nvidia.com
Signed-off-by: Aharon Landau <aharonl@nvidia.com>
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/mlx5/mlx5_ib.h
drivers/infiniband/hw/mlx5/mr.c