Re: [PATCH] soc: ti: knav_dma: remove debugfs file on teardown
From: Pengpeng Hou
Date: Wed Dec 02 2026 - 22:19:31 EST
Hi Hari and Nishanth,
The file is created with debugfs_create_file(), not the unsafe
variant. The debugfs proxy takes a file-data reference around read();
removal waits for active protected accesses, and a new read through
an already-open descriptor cannot enter the driver after removal.
An open descriptor by itself therefore doesn't require a second lock
around the seq_file read.
Ordering still matters: the dentry belongs with the DMA pool device
and must be removed before tearing down the list used by the show
callback. That only covers debugfs readers, not other users of the
global kdev. I'll keep that distinction explicit in the revision.
Thanks,
Pengpeng