[PATCH] soc: ti: knav_dma: remove debugfs file on teardown
Pengpeng Hou
pengpeng at iscas.ac.cn
Wed Dec 2 19:19:20 PST 2026
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
More information about the linux-arm-kernel
mailing list