bcachefs: Kill normalize_read_intent_locks()
authorKent Overstreet <kent.overstreet@gmail.com>
Mon, 22 Aug 2022 19:29:53 +0000 (15:29 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:41 +0000 (17:09 -0400)
commit8b31e4fc7d9e27fd5dc56bb063acf9e4ea575973
tree560cdec27e17f8c3019eace22a24ed9a8ccf4847
parent2ec254c098da677295c2487ae36e75a26d557222
bcachefs: Kill normalize_read_intent_locks()

Before we had the deadlock cycle detector, we didn't want to be holding
read locks when taking intent locks, because blocking on an intent lock
while holding a read lock was a lock ordering violation that could
cause a deadlock.

With the cycle detector this is no longer an issue, so this code can be
deleted.

Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
fs/bcachefs/btree_update_leaf.c