netfs.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] netfs: Fix use of fscache with ceph
@ 2025-07-11 15:09 David Howells
  2025-07-11 15:10 ` [PATCH 1/2] netfs: Fix copy-to-cache so that it performs collection with ceph+fscache David Howells
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: David Howells @ 2025-07-11 15:09 UTC (permalink / raw)
  To: Christian Brauner
  Cc: David Howells, Paulo Alcantara, Max Kellermann,
	Viacheslav Dubeyko, Alex Markuze, Ilya Dryomov, netfs, linux-nfs,
	ceph-devel, linux-fsdevel, linux-kernel

Hi Christian,

Here are a couple of patches that fix the use of fscaching with ceph:

 (1) Fix the read collector to mark the write request that it creates to copy
     data to the cache with NETFS_RREQ_OFFLOAD_COLLECTION so that it will run
     the write collector on a workqueue as it's meant to run in the background
     and the app isn't going to wait for it.

 (2) Fix the read collector to wake up the copy-to-cache write request after
     it sets NETFS_RREQ_ALL_QUEUED if the write request doesn't have any
     subrequests left on it.  ALL_QUEUED indicates that there won't be any
     more subreqs coming and the collector should clean up - except that an
     event is needed to trigger that, but it only gets events from subreq
     termination and so the last event can beat us to setting ALL_QUEUED.

The patches can also be found here:

	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/log/?h=netfs-fixes

Thanks,
David

David Howells (2):
  netfs: Fix copy-to-cache so that it performs collection with
    ceph+fscache
  netfs: Fix race between cache write completion and ALL_QUEUED being
    set

 fs/netfs/read_pgpriv2.c      |  5 +++++
 include/trace/events/netfs.h | 30 ++++++++++++++++++++++++++++++
 2 files changed, 35 insertions(+)


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2025-07-14  9:05 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-11 15:09 [PATCH 0/2] netfs: Fix use of fscache with ceph David Howells
2025-07-11 15:10 ` [PATCH 1/2] netfs: Fix copy-to-cache so that it performs collection with ceph+fscache David Howells
2025-07-12  5:25   ` Max Kellermann
2025-07-11 15:10 ` [PATCH 2/2] netfs: Fix race between cache write completion and ALL_QUEUED being set David Howells
2025-07-11 20:09 ` [PATCH 0/2] netfs: Fix use of fscache with ceph Paulo Alcantara
2025-07-14  9:05 ` Christian Brauner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).