Skip to content

ceph: conversion to fscache API rewrite

Jeff Layton ceph-devel linux-fsdevel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ceph: conversion to new fscache APIfs/ceph/Kconfig fs/ceph/addr.c fs/ceph/cache.c +6 more+204 -1740 replies
2/2ceph: add fscache writeback supportfs/ceph/addr.c+59 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] ceph: conversion to fscache API rewrite

Last week, David Howells posted a set of patches to modernize fscache and cachefiles [1] (and in the process fix a ton of bugs). The patches in this set convert ceph over to use the new API.

The first patch in this series switches ceph over to use the new API. The second patch adds support for caching files that are open for write.

I've tested caching and non-caching setups with xfstests and it seems to work well. The only remaining issue I see is that sometimes fsstress will cause the cachefiles backend fs to fill up. When this happens, the cache goes offline, but everything otherwise keeps working.

This is still an improvement over the existing code, however, and I think that problem may be solveable by a more aggressive culling cycle.

[1]: https://lore.kernel.org/ceph-devel/CAHk-=wi7K64wo4PtROxq_cLhfq-c-3aCbW5CjRfnKYA439YFUw@mail.gmail.com/T/#t

Jeff Layton (2):
ceph: conversion to new fscache API
ceph: add fscache writeback support

 fs/ceph/Kconfig |   2 +-
 fs/ceph/addr.c  |  98 +++++++++++++++++++-----
 fs/ceph/cache.c | 196 +++++++++++++++++++++---------------------------
 fs/ceph/cache.h |  96 +++++++++++++++++-------
 fs/ceph/caps.c  |   3 +-
 fs/ceph/file.c  |  13 +++-
 fs/ceph/inode.c |  22 ++++--
 fs/ceph/super.c |  10 +--
 fs/ceph/super.h |   4 +-
 9 files changed, 263 insertions(+), 181 deletions(-)
Signature · 1 line
2.31.1