]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bcachefs: Fix bch2_seek_hole() locking
authorKent Overstreet <kent.overstreet@linux.dev>
Thu, 27 Mar 2025 17:34:13 +0000 (13:34 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Fri, 28 Mar 2025 15:30:14 +0000 (11:30 -0400)
commit1f4bb8254c6f12c306604a627b9968fc312fe5b0
tree9ef1a34112350ca6f12ed2dddddd1723955b88c1
parent2dd202dbaf0acfa4af7fcdf258f35866e31f7425
bcachefs: Fix bch2_seek_hole() locking

We can't call bch2_seek_pagecache_hole(), and block on page locks, with
btree locks held.

This is easily fixed because we're at the end of the transaction - we
can just unlock, we don't need a drop_locks_do().

Reported-by: https://github.com/nagalun
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/fs-io.c