summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKent Overstreet2021-09-07 21:25:32 -0400
committerKent Overstreet2023-10-22 17:09:12 -0400
commitcaaa66aa546a27e75fb3cf32df1906140f85f1c9 (patch)
tree670ae5eefa4a486f94181b84108e9f562f1a7a88 /tools/perf/scripts/python/export-to-postgresql.py
parentb301105b48d2805ca0e29b1b0f660cf2232511ee (diff)
bcachefs: Better approach to write vs. read lock deadlocks
Instead of unconditionally upgrading read locks to intent locks in do_bch2_trans_commit(), this patch changes the path that takes write locks to first trylock, and then if trylock fails check if we have a conflicting read lock, and restart the transaction if necessary. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions