From: Cheng Yongkang <teel4res@gmail.com>
To: Trond Myklebust <trondmy@kernel.org>, Anna Schumaker <anna@kernel.org>
Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v2] NFS: defer access-cache entry and group_info free past RCU
Date: Sun, 29 Nov 2026 20:50:09 -0800 [thread overview]
Message-ID: <20261130045009.3414328-1-teel4res@gmail.com> (raw)
In-Reply-To: <7efff03de5428b1f203e1d5d44aafcba547cfed9.camel@kernel.org>
On Sat, 2026-11-28 at 20:06 -0500, Trond Myklebust wrote:
>> + INIT_RCU_WORK(&entry->rcu_work, nfs_access_free_entry_work);
>> + queue_rcu_work(nfsiod_workqueue, &entry->rcu_work);
>
> Why is this a workqueue job and not just an RCU callback?
There is no need for one. I assumed put_group_info() could not run
from an RCU callback because groups_free() uses kvfree(), but kvfree()
may be called in interrupt context: vfree() hands the area to
vfree_atomic() there. put_cred_rcu() already drops a group_info
reference from an RCU callback.
I'll send a v3 that frees the entry with call_rcu() and leaves struct
nfs_access_entry unchanged.
Thanks,
Cheng
prev parent reply other threads:[~2026-11-30 4:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-26 10:52 Cheng Yongkang
2026-11-29 1:06 ` Trond Myklebust
2026-11-30 4:50 ` Cheng Yongkang [this message]
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=20261130045009.3414328-1-teel4res@gmail.com \
--to=teel4res@gmail.com \
--cc=anna@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-nfs@vger.kernel.org \
--cc=stable@vger.kernel.org \
--cc=trondmy@kernel.org \
/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
all inboxes | Powered by JetHome®