Re: [PATCH] kernfs: support kernfs notify in memory recliam context

From: junxiao . bi
Date: Thu Nov 16 2023 - 12:04:53 EST


On 11/15/23 7:30 AM, Mariusz Tkaczyk wrote:

On Tue, 14 Nov 2023 15:53:47 -0800
junxiao.bi@xxxxxxxxxx wrote:

Understood, thanks. Sound like depending on Userspace on memory reclaim
path is really bad idea and the only option for fixing it is to remove
that dependency, but i am not sure that is possible without breaking the
consistency of metadata.

Thanks,

Junxiao.
Indeed the project of external metadata management if fragile. You cares about
IMSM here (same as me) so ideally we should implement metadata management in
kernel- I think that IMSM deserved that after 10 years on the market. There is
no better option, other options are just "workarounds" for the lack of metadata
management in kernel.
Agree, sound like that's the way to proceed.

Song, any comments here?

From the second hand, there is native raid which should just work, so maybe you
can switch to the native raid?

Unfortunately that's is not possible, it's a production setup to use imsm raid.

Thanks,

Junxiao.


Thanks,
Mariusz