aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/mem-phys-addr.py
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2022-06-09 13:39:10 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2022-06-29 16:47:44 +0200
commitbdff777cbb582da52cf4b536adc0815a41b407ed (patch)
tree4b985f4231e48d36ee3b0dde73b079fb4cd718d2 /tools/perf/scripts/python/mem-phys-addr.py
parent03c765b0e3b4cb5063276b086c76f7a612856a9a (diff)
gfs2: Fix up gfs2_glock_async_wait
Since commit 1fc05c8d8426 ("gfs2: cancel timed-out glock requests"), a pending locking request can be canceled by calling gfs2_glock_dq() on the pending holder. In gfs2_glock_async_wait(), when we time out, use that to cancel the remaining locking requests and dequeue the locking requests already granted. That's simpler as well as more efficient than waiting for all locking requests to eventually be granted and dequeuing them then. In addition, gfs2_glock_async_wait() promises that by the time the function completes, all glocks are either granted or dequeued, but the implementation doesn't keep that promise if individual locking requests fail. Fix that as well. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions