mbox series

[v3,0/2] ceph: drop the messages from MDS when unmouting

Message ID 20230130084147.122440-1-xiubli@redhat.com
Headers show
Series ceph: drop the messages from MDS when unmouting | expand

Message

Xiubo Li Jan. 30, 2023, 8:41 a.m. UTC
From: Xiubo Li <xiubli@redhat.com>

V3:
- Fix the sequence of removing the requests from osdc and calling the
req->r_callback().
- Add a block counter to block the unmounting if there is any inflight
cap/snap/lease reply message is running.

V2:
- Fix it in ceph layer.

Xiubo Li (2):
  libceph: defer removing the req from osdc just after req->r_callback
  ceph: drop the messages from MDS when unmounting

 fs/ceph/caps.c        |  5 +++++
 fs/ceph/mds_client.c  | 12 +++++++++-
 fs/ceph/mds_client.h  | 11 ++++++++-
 fs/ceph/quota.c       |  4 ++++
 fs/ceph/snap.c        |  6 +++++
 fs/ceph/super.c       | 52 +++++++++++++++++++++++++++++++++++++++++++
 fs/ceph/super.h       |  2 ++
 net/ceph/osd_client.c | 43 ++++++++++++++++++++++++++++-------
 8 files changed, 125 insertions(+), 10 deletions(-)

Comments

Xiubo Li Jan. 31, 2023, 1:58 a.m. UTC | #1
With this I have passed all the xfstests-dev test cases with the 
test_dummy_encryption option enabled, more detail please see:

https://tracker.ceph.com/issues/58126?issue_count=91&issue_position=7&next_issue_id=58489&prev_issue_id=58602#note-9

Thanks

- Xiubo

On 30/01/2023 16:41, xiubli@redhat.com wrote:
> From: Xiubo Li <xiubli@redhat.com>
>
> V3:
> - Fix the sequence of removing the requests from osdc and calling the
> req->r_callback().
> - Add a block counter to block the unmounting if there is any inflight
> cap/snap/lease reply message is running.
>
> V2:
> - Fix it in ceph layer.
>
> Xiubo Li (2):
>    libceph: defer removing the req from osdc just after req->r_callback
>    ceph: drop the messages from MDS when unmounting
>
>   fs/ceph/caps.c        |  5 +++++
>   fs/ceph/mds_client.c  | 12 +++++++++-
>   fs/ceph/mds_client.h  | 11 ++++++++-
>   fs/ceph/quota.c       |  4 ++++
>   fs/ceph/snap.c        |  6 +++++
>   fs/ceph/super.c       | 52 +++++++++++++++++++++++++++++++++++++++++++
>   fs/ceph/super.h       |  2 ++
>   net/ceph/osd_client.c | 43 ++++++++++++++++++++++++++++-------
>   8 files changed, 125 insertions(+), 10 deletions(-)
>