linux/fs/bcachefs
Kent Overstreet 09b0283ee2 bcachefs: Make sure to drop/retake btree locks before reclaim
We really don't want to be invoking memory reclaim with btree locks
held: even aside from (solvable, but tricky) recursion issues, it can
cause painful to diagnose performance edge cases.

This fixes a recently reported issue in btree_key_can_insert_cached().

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Reported-by: Mateusz Guzik <mjguzik@gmail.com>
Fixes: https://lore.kernel.org/linux-bcachefs/CAGudoHEsb_hGRMeWeXh+UF6po0qQuuq_NKSEo+s1sEb6bDLjpA@mail.gmail.com/T/
2023-11-13 21:45:03 -05:00
..
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:10 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:13 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:09:53 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:37 -04:00
2023-10-22 17:09:57 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:09:54 -04:00
2023-10-22 17:10:13 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:09:45 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:10 -04:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-11-07 11:38:38 -08:00
2023-10-22 17:10:15 -04:00
2023-11-05 13:12:18 -05:00
2023-11-05 13:12:18 -05:00
2023-11-05 13:12:18 -05:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:10:12 -04:00
2023-10-22 17:09:56 -04:00
2023-10-22 17:10:03 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:13 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-10-22 17:10:10 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:10 -04:00
2023-11-05 13:12:08 -05:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:09:44 -04:00
2023-10-30 22:26:45 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-05 13:12:08 -05:00
2023-11-01 21:11:08 -04:00
2023-10-22 17:10:10 -04:00
2023-10-31 12:18:38 -04:00
2023-11-05 13:12:08 -05:00
2023-11-05 13:12:08 -05:00
2023-10-22 17:10:13 -04:00
2023-10-22 17:10:12 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00