All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Luís Henriques" <lhenriques@suse.de>
To: xiubli@redhat.com
Cc: idryomov@gmail.com, ceph-devel@vger.kernel.org,
	jlayton@kernel.org, vshankar@redhat.com, mchangir@redhat.com
Subject: Re: [PATCH v2 0/2] ceph: fix fscrypt_destroy_keyring use-after-free bug
Date: Tue, 06 Jun 2023 10:53:18 +0100	[thread overview]
Message-ID: <87pm689asx.fsf@suse.de> (raw)
In-Reply-To: <20230606033212.1068823-1-xiubli@redhat.com> (xiubli@redhat.com's message of "Tue, 6 Jun 2023 11:32:10 +0800")

xiubli@redhat.com writes:

> From: Xiubo Li <xiubli@redhat.com>
>
> V2:
> - Improve the code by switching to wait_for_completion_killable_timeout()
>   when umounting, at the same add one umount_timeout option.

Instead of adding yet another (undocumented!) mount option, why not re-use
the already existent 'mount_timeout' instead?  It's already defined and
kept in 'struct ceph_options', and the default value is defined with the
same value you're using, in CEPH_MOUNT_TIMEOUT_DEFAULT.

Cheers,
-- 
Luís

> - Improve the inc/dec helpers for metadata/IO cases.
>
>
> Xiubo Li (2):
>   ceph: drop the messages from MDS when unmounting
>   ceph: just wait the osd requests' callbacks to finish when unmounting
>
>  fs/ceph/addr.c       | 10 +++++
>  fs/ceph/caps.c       |  6 ++-
>  fs/ceph/mds_client.c | 14 +++++--
>  fs/ceph/mds_client.h | 11 ++++-
>  fs/ceph/quota.c      | 14 +++----
>  fs/ceph/snap.c       | 10 +++--
>  fs/ceph/super.c      | 99 +++++++++++++++++++++++++++++++++++++++++++-
>  fs/ceph/super.h      |  7 ++++
>  8 files changed, 154 insertions(+), 17 deletions(-)
>
> -- 
> 2.40.1
>


  parent reply	other threads:[~2023-06-06  9:53 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-06  3:32 [PATCH v2 0/2] ceph: fix fscrypt_destroy_keyring use-after-free bug xiubli
2023-06-06  3:32 ` [PATCH v2 1/2] ceph: drop the messages from MDS when unmounting xiubli
2023-06-06  7:47   ` Milind Changire
2023-06-06  8:50     ` Xiubo Li
2023-06-06  3:32 ` [PATCH v2 2/2] ceph: just wait the osd requests' callbacks to finish " xiubli
2023-06-06  7:12   ` Milind Changire
2023-06-06  9:53 ` Luís Henriques [this message]
2023-06-06 12:29   ` [PATCH v2 0/2] ceph: fix fscrypt_destroy_keyring use-after-free bug Xiubo Li
2023-06-07  9:18     ` Luís Henriques
2023-06-07 10:00       ` Ilya Dryomov
2023-06-08  2:10         ` Xiubo Li

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87pm689asx.fsf@suse.de \
    --to=lhenriques@suse.de \
    --cc=ceph-devel@vger.kernel.org \
    --cc=idryomov@gmail.com \
    --cc=jlayton@kernel.org \
    --cc=mchangir@redhat.com \
    --cc=vshankar@redhat.com \
    --cc=xiubli@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.