[PATCH v7 1/4] fs: configfs: add helpers for opening non-configfs paths

Breno Leitao leitao at debian.org
Tue Oct 27 05:33:41 PDT 2026


On Sun, Sep 27, 2026 at 04:20:08PM +0800, Runyu Xiao wrote:
> Configfs store callbacks hold frag_sem while they run.  Reopening a path
> that resolves to configfs from such a callback can acquire the same
> non-recursive semaphore again.
> 
> Add configfs_file_open() for configured pathnames and configfs_open_root()
> for paths relative to a resolved root.  Reject configfs roots before using
> file_open_root() so the normal open checks remain in place.
> 
> Assisted-by: LLM Codex
> Signed-off-by: Runyu Xiao <runyu.xiao at seu.edu.cn>

Acked-by: Breno Leitao <leitao at debian.or>



More information about the Linux-nvme mailing list