Skip to content

ceph: remove the capsnaps when removing the caps

[email protected] ceph-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 4 repliesIn review
  2. v23 patches 1 replySuperseded
  3. v13 patches 8 repliesSuperseded

Changes in v3 from the cover letter

- fix one crash bug in the first patch.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ceph: remove the capsnaps when removing the capsfs/ceph/caps.c fs/ceph/mds_client.c fs/ceph/super.h+86 -182 replies
2/3ceph: don't WARN if we're force umountingfs/ceph/mds_client.c+5 -20 replies
3/3ceph: don't WARN if we're iterate removing the session capsfs/ceph/caps.c fs/ceph/mds_client.c fs/ceph/super.h+32 -100 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/3] ceph: remove the capsnaps when removing the caps

From: Xiubo Li <[email protected]>

V3:
- fix one crash bug in the first patch.

V2:
- minor fixes to clean up the code from Jeff's comments, thanks
- swith to use lockdep_assert_held().

Test this for around 5 hours and this patch series worked well for me, my test script is:

$ while [ 1 ]; do date; for d in A B C; do (for i in {1..3}; do ./bin/mount.ceph :/ /mnt/kcephfs.$d -o noshare; rm -rf /mnt/kcephfs.$d/file$i.txt; rmdir /mnt/kcephfs.$d/.snap/snap$i; dd if=/dev/zero of=/mnt/kcephfs.$d/file$i.txt bs=1M count=8; mkdir -p /mnt/kcephfs.$d/.snap/snap$i; umount -fl /mnt/kcephfs.$d; done ) & done; wait; date; done

Xiubo Li (3):
ceph: remove the capsnaps when removing the caps
ceph: don't WARN if we're force umounting
ceph: don't WARN if we're iterate removing the session caps

 fs/ceph/caps.c       | 106 ++++++++++++++++++++++++++++++++-----------
 fs/ceph/mds_client.c |  40 ++++++++++++++--
 fs/ceph/super.h      |   7 +++
 3 files changed, 123 insertions(+), 30 deletions(-)
Signature · 1 line
2.27.0