diff options
author | Alexander Aring <aahringo@redhat.com> | 2021-11-02 22:17:18 +0300 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2021-11-02 22:39:20 +0300 |
commit | 3cb5977c5214c219b2859f926ed547480d53fdde (patch) | |
tree | f321ca0c0e1f397073f194180f7e8043cea747aa /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 164d88abd7608e869b7617d5ff8893344fdda759 (diff) | |
download | linux-3cb5977c5214c219b2859f926ed547480d53fdde.tar.xz |
fs: dlm: ls_count busy wait to event based wait
This patch changes the ls_count busy wait to use atomic counter values
and wait_event() to wait until ls_count reach zero. It will slightly
reduce the number of holding lslist_lock. At remove lockspace we need to
retry the wait because it a lockspace get could interefere between
wait_event() and holding the lock which deletes the lockspace list entry.
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions