diff options
author | 2023-07-26 16:56:57 +0100 | |
---|---|---|
committer | 2023-08-21 14:52:17 +0200 | |
commit | 4490e803e1fe9fab8db5025e44e23b55df54078b (patch) | |
tree | 6d2cfc7c558c3f531ca37dd5a36c886ab7dfe5e4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | btrfs: refactor main loop in memmove_extent_buffer() (diff) | |
download | wireguard-linux-4490e803e1fe9fab8db5025e44e23b55df54078b.tar.xz wireguard-linux-4490e803e1fe9fab8db5025e44e23b55df54078b.zip |
btrfs: don't start transaction when joining with TRANS_JOIN_NOSTART
When joining a transaction with TRANS_JOIN_NOSTART, if we don't find a
running transaction we end up creating one. This goes against the purpose
of TRANS_JOIN_NOSTART which is to join a running transaction if its state
is at or below the state TRANS_STATE_COMMIT_START, otherwise return an
-ENOENT error and don't start a new transaction. So fix this to not create
a new transaction if there's no running transaction at or below that
state.
CC: stable@vger.kernel.org # 4.14+
Fixes: a6d155d2e363 ("Btrfs: fix deadlock between fiemap and transaction commits")
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions