diff options
| author | Aharon Landau <[email protected]> | 2022-07-26 07:19:08 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2022-07-27 17:45:48 +0000 |
| commit | 86457a92df1bebdcd8e20afa286427e4b525aa08 (patch) | |
| tree | e9ba1f9ea7fe6385d947d98e8ccd6954d8ad035e /fs/jbd2/commit.c | |
| parent | RDMA/mlx5: Replace ent->lock with xa_lock (diff) | |
| download | kernel-86457a92df1bebdcd8e20afa286427e4b525aa08.tar.gz kernel-86457a92df1bebdcd8e20afa286427e4b525aa08.zip | |
RDMA/mlx5: Replace cache list with Xarray
The Xarray allows us to store the cached mkeys in memory efficient way.
Entries are reserved in the Xarray using xa_cmpxchg before calling to the
upcoming callbacks to avoid allocations in interrupt context. The
xa_cmpxchg can sleep when using GFP_KERNEL, so we call it in a loop to
ensure one reserved entry for each process trying to reserve.
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Aharon Landau <[email protected]>
Signed-off-by: Leon Romanovsky <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions
