Re: [PATCH] sunrpc: instantiate rpc_pipefs dentry before publishing it

From: Al Viro

Date: Mon Oct 19 2026 - 12:23:24 EST


On Mon, Oct 19, 2026 at 01:11:17PM +0300, Avi Weiss wrote:
> rpc_mkpipe_dentry() publishes pipe->dentry before
> d_make_persistent() attaches its inode. A concurrent
> rpc_queue_upcall() or rpc_timeout_upcall_queue() can
> conceivably dereference the dentry while d_inode() is NULL.

Details, please... I have no objections against the reordering
per se, but I would like to understand the scenario leading to
such a concurrent call.