Re: [PATCH] fs/netfs/write_collect: call `invalidate_cache` only if implemented

From: Max Kellermann
Date: Fri Mar 14 2025 - 03:35:53 EST


On Fri, Feb 28, 2025 at 1:36 PM Max Kellermann <max.kellermann@xxxxxxxxx> wrote:
>
> Many filesystems such as NFS and Ceph do not implement the
> `invalidate_cache` method. On those filesystems, if writing to the
> cache (`NETFS_WRITE_TO_CACHE`) fails for some reason, the kernel
> crashes like this:

David, it's been more than two weeks - please don't forget this patch.
It's yet another netfs crash bug fix.