]> git.ipfire.org Git - thirdparty/linux.git/commit
bcachefs: Reduce would_deadlock restarts
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 11 Jan 2024 04:47:04 +0000 (23:47 -0500)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 21 Jan 2024 11:01:45 +0000 (06:01 -0500)
commit57f2d2097603fea102330e8cfe6be4a8db24809e
tree60436cd28c9f83ba432873e0af1a48e2e71002cb
parent5b14ce35af901853e91e186f34e71f31b08b4e0a
bcachefs: Reduce would_deadlock restarts

We don't have to take locks in any particular ordering - we'll make
forward progress just fine - but if we try to stick to an ordering, it
can help to avoid excessive would_deadlock transaction restarts.

This tweaks the reflink path to take extents btree locks in the right
order.

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/reflink.c