linux_dsm_epyc7002/drivers/infiniband
Jason Gunthorpe 6898d1c661 RDMA/mlx5: Use RCU and direct refcounts to keep memory alive
dispatch_event_fd() runs from a notifier with minimal locking, and relies
on RCU and a file refcount to keep the uobject and eventfd alive.

As the next patch wants to remove the file_operations release function
from the drivers, re-organize things so that the devx_event_notifier()
path uses the existing RCU to manage the lifetime of the uobject and
eventfd.

Move the refcount puts to a call_rcu so that the objects are guaranteed to
exist and remove the indirect file refcount.

Link: https://lore.kernel.org/r/1578504126-9400-2-git-send-email-yishaih@mellanox.com
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
2020-01-13 16:17:19 -04:00
..
core RDMA/mlx5: Use RCU and direct refcounts to keep memory alive 2020-01-13 16:17:19 -04:00
hw RDMA/mlx5: Use RCU and direct refcounts to keep memory alive 2020-01-13 16:17:19 -04:00
sw RDMA/rxe: Fix error type of mmap_offset 2020-01-03 19:43:51 -04:00
ulp IB/iser: use true,false for bool variable 2020-01-03 19:13:59 -04:00
Kconfig RDMA/iw_cxgb3: Remove the iw_cxgb3 module from kernel 2019-10-04 15:08:59 -03:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00