summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2022-12-15 21:44:32 -0500
committerKent Overstreet <kent.overstreet@linux.dev>2022-12-15 21:48:43 -0500
commitb9fe8a8f22e9771ba84a9958a46fdedc472aa0db (patch)
tree2b215bd614fa7d3bc49aee0db22f2d13372f6b20 /tools/perf/scripts/python/export-to-postgresql.py
parentca2b096ed0403f34418cd4bb3af42d19d1f21005 (diff)
bcachefs: Fix for long running btree transactions & key cache
While a btree transaction is running, we hold a SRCU read lock on the btree key cache that prevents btree key cache keys from being freed - this is so that relock() operations won't access freed memory. The downside of this is that long running btree transactions prevent memory from being freed from the key cache. This adds a check in bch2_trans_begin() - if the transaction has been running longer than 1 second, drop and retake the SRCU read lock and zero out pointers to unlock key cache paths. Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions