Linux NFS development
 help / color / mirror / Atom feed
From: Trond Myklebust <trondmy@kernel.org>
To: Zhou Jifeng <zhoujifeng@kylinsec.com.cn>,
	linux-nfs <linux-nfs@vger.kernel.org>
Subject: Re: Where Is Dirty Data Flushed During NFSv4 Delegation Recall?
Date: Thu, 11 Sep 2025 10:29:45 -0400	[thread overview]
Message-ID: <3729660588543ff1d8c0b3c014948559b158cdad.camel@kernel.org> (raw)
In-Reply-To: <tencent_6A84D2E177043C91217A1CF6@qq.com>

On Thu, 2025-09-11 at 10:30 +0800, Zhou Jifeng wrote:
> Hello everyone, I have a question that has been bothering me for a
> long
>  time. I would like to ask a familiar friend to help explain it. In
> the NFSv4
>  protocol, it is clearly defined that during the delegation RECALL 
> processing, the client needs to write the modified cache to the
> server
> side. However, throughout the process, I have not found the code for
> flushing dirty data in the kernel NFS client. I have repeatedly
> reviewed
> the code logic of nfs4_callback_recall and nfs4_state_manager, but
> still
> cannot understand where the dirty data is flushed.
> 
> My question is: When the client is handling the RECALL operation,
> where
> does the process of flushing the dirty data take place?
> 

The question of when to flush dirty data isn't determined by the NFSv4
RECALL operation spec. It is decided by the client caching model and by
POSIX.
Please read the "nfs(5)" manpage and the section on close-to-open cache
consistency.

-- 
Trond Myklebust
Linux NFS client maintainer, Hammerspace
trondmy@kernel.org, trond.myklebust@hammerspace.com

  reply	other threads:[~2025-09-11 14:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-11  2:30 Where Is Dirty Data Flushed During NFSv4 Delegation Recall? Zhou Jifeng
2025-09-11 14:29 ` Trond Myklebust [this message]
2025-09-15 11:23   ` Zhou Jifeng

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=3729660588543ff1d8c0b3c014948559b158cdad.camel@kernel.org \
    --to=trondmy@kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=zhoujifeng@kylinsec.com.cn \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox