Re: [PATCH] netfs, ceph: Revert "netfs: Remove deprecated use of PG_private_2 as a second writeback flag"

From: Max Kellermann
Date: Wed Jul 31 2024 - 07:37:44 EST


On Wed, Jul 31, 2024 at 12:41 PM David Howells <dhowells@xxxxxxxxxx> wrote:

> > ------------[ cut here ]------------
> > WARNING: CPU: 13 PID: 3621 at fs/ceph/caps.c:3386
> > ceph_put_wrbuffer_cap_refs+0x416/0x500
>
> Is that "WARN_ON_ONCE(ci->i_auth_cap);" for you?

Yes, and that happens because no "capsnap" was found, because the
"snapc" parameter is 0x356 (NETFS_FOLIO_COPY_TO_CACHE); no
snap_context with address 0x356 could be found, of course.

Max