aboutsummaryrefslogtreecommitdiff
path: root/fs/direct-io.c
diff options
context:
space:
mode:
authorGravatar Kent Overstreet <kent.overstreet@gmail.com> 2022-08-05 13:06:44 -0400
committerGravatar Kent Overstreet <kent.overstreet@linux.dev> 2023-10-22 17:09:41 -0400
commit62448afee714354a26db8a0f3c644f58628f0792 (patch)
tree97c0ead47c4af1dc655906672655d530b1a2a8d6 /fs/direct-io.c
parentbcachefs: Add a debug assert (diff)
downloadlinux-62448afee714354a26db8a0f3c644f58628f0792.tar.gz
linux-62448afee714354a26db8a0f3c644f58628f0792.tar.bz2
linux-62448afee714354a26db8a0f3c644f58628f0792.zip
bcachefs: Fix bch2_btree_node_upgrade()
Previously, if we were trying to upgrade from a read to an intent lock but we held an additional read lock via another btree_path, bch2_btree_node_upgrade() would always fail, in six_lock_tryupgrade(). This patch factors out the code that __bch2_btree_node_lock_write() uses to temporarily drop extra read locks, so that six_lock_tryupgrade() can succeed. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions