From: "J. Bruce Fields" <bfields@fieldses.org>
To: jlayton@redhat.com
Cc: Dai Ngo <dai.ngo@oracle.com>,
chuck.lever@oracle.com, jlayton@redhat.com,
viro@zeniv.linux.org.uk, linux-nfs@vger.kernel.org,
linux-fsdevel@vger.kernel.org
Subject: Re: [PATCH RFC v12 1/3] fs/lock: add new callback, lm_lock_conflict, to lock_manager_operations
Date: Thu, 10 Feb 2022 09:21:43 -0500 [thread overview]
Message-ID: <20220210142143.GC21434@fieldses.org> (raw)
In-Reply-To: <1644468729-30383-2-git-send-email-dai.ngo@oracle.com>
Jeff, this table of locking rules seems out of date since 6109c85037e5
"locks: add a dedicated spinlock to protect i_flctx lists". Are any of
those callbacks still called with the i_lock? Should that column be
labeled "flc_lock" instead? Or is that even still useful information?
--b.
On Wed, Feb 09, 2022 at 08:52:07PM -0800, Dai Ngo wrote:
> diff --git a/Documentation/filesystems/locking.rst b/Documentation/filesystems/locking.rst
> index d36fe79167b3..57ce0fbc8ab1 100644
> --- a/Documentation/filesystems/locking.rst
> +++ b/Documentation/filesystems/locking.rst
> @@ -439,6 +439,7 @@ prototypes::
> void (*lm_break)(struct file_lock *); /* break_lease callback */
> int (*lm_change)(struct file_lock **, int);
> bool (*lm_breaker_owns_lease)(struct file_lock *);
> + bool (*lm_lock_conflict)(struct file_lock *);
>
> locking rules:
>
> @@ -450,6 +451,7 @@ lm_grant: no no no
> lm_break: yes no no
> lm_change yes no no
> lm_breaker_owns_lease: no no no
> +lm_lock_conflict: no no no
> ====================== ============= ================= =========
next prev parent reply other threads:[~2022-02-10 14:21 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-10 4:52 [PATCH RFC v12 0/3] nfsd: Initial implementation of NFSv4 Courteous Server Dai Ngo
2022-02-10 4:52 ` [PATCH RFC v12 1/3] fs/lock: add new callback, lm_lock_conflict, to lock_manager_operations Dai Ngo
2022-02-10 14:21 ` J. Bruce Fields [this message]
2022-02-10 14:29 ` Jeff Layton
2022-02-10 19:41 ` dai.ngo
2022-02-10 19:44 ` Chuck Lever III
2022-02-10 19:56 ` dai.ngo
2022-02-10 14:28 ` J. Bruce Fields
2022-02-10 16:50 ` Chuck Lever III
2022-02-10 17:32 ` Jeff Layton
2022-02-10 19:47 ` dai.ngo
2022-02-10 4:52 ` [PATCH RFC v12 2/3] fs/lock: only call lm_breaker_owns_lease if there is conflict Dai Ngo
2022-02-10 4:52 ` [PATCH RFC v12 3/3] nfsd: Initial implementation of NFSv4 Courteous Server Dai Ngo
2022-02-10 15:17 ` J. Bruce Fields
2022-02-10 16:32 ` J. Bruce Fields
2022-02-10 16:52 ` Chuck Lever III
2022-02-10 18:59 ` Bruce Fields
2022-02-10 19:04 ` Chuck Lever III
2022-02-10 19:52 ` dai.ngo
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=20220210142143.GC21434@fieldses.org \
--to=bfields@fieldses.org \
--cc=chuck.lever@oracle.com \
--cc=dai.ngo@oracle.com \
--cc=jlayton@redhat.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=viro@zeniv.linux.org.uk \
/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.