Re: [GIT PULL] bcachefs changes for 6.12-rc1
From: Linus Torvalds
Date: Mon Sep 23 2024 - 22:48:34 EST
On Mon, 23 Sept 2024 at 19:26, Linus Torvalds
<torvalds@xxxxxxxxxxxxxxxxxxxx> wrote:
>
> And I had missed the issue with PREEMPT_RT and the fact that right now
> the inode hash lock is outside the inode lock, which is problematic.
.. although I guess that could be solved by just making the spinlock
be external to the hash list, rather than part of the list like
list_bh.
You wouldn't need to do one lock per list head, you could just do some
grouping of the hash.
That said, the vfs inode hash code really is pretty disgusting and has
been accumulating these warts for a long time. So maybe a "filesystems
do their own thing" together with some helper infrastructure (like
using rhashtable) is actually the right thing to do.
Linus