Files
linux/fs/dlm
Alexander Aring c846f732b9 dlm: move lkb xarray lookup out of lock
This patch moves the xarray lookup functionality for the lkb out of the
ls_lkbxa_lock read lock handling. We can do that as the xarray should be
possible to access lockless in case of reader like xa_load(). We confirm
under ls_lkbxa_lock that the lkb is still part of the data structure and
take a reference when its still part of ls_lkbxa to avoid being freed
after doing the lookup. To do a check if the lkb is still part of the
ls_lkbxa data structure we use a kref_read() as the last put will remove
it from the ls_lkbxa data structure and any reference taken means it is
still part of ls_lkbxa.

A similar approach was done with the DLM rsb rhashtable just with a flag
instead of the refcounter because the refcounter has a slightly
different meaning.

Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
2024-08-08 15:15:08 -05:00
..
2024-06-11 13:13:00 -05:00
2024-06-11 13:13:00 -05:00
2024-06-10 15:11:46 -05:00
2024-04-16 14:45:31 -05:00
2023-03-06 15:49:07 -06:00
2024-08-08 15:15:08 -05:00
2023-03-06 15:49:07 -06:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2024-06-10 15:11:46 -05:00
2024-06-10 15:11:46 -05:00
2024-06-11 13:13:00 -05:00
2022-04-06 14:02:37 -05:00
2022-04-06 14:02:37 -05:00