[PATCH 4/5] drm/debugfs: remove dev->debugfs_list and debugfs_mutex v2
Andi Shyti
andi.shyti at linux.intel.com
Thu Aug 31 21:56:06 UTC 2023
Hi Christian,
On Tue, Aug 29, 2023 at 01:01:14PM +0200, Christian König wrote:
> The mutex was completely pointless in the first place since any
> parallel adding of files to this list would result in random
> behavior since the list is filled and consumed multiple times.
>
> Completely drop that approach and just create the files directly but
> return -ENODEV while opening the file when the minors are not
> registered yet.
>
> v2: rebase on debugfs directory rework, limit access before minors are
> registered.
>
> Signed-off-by: Christian König <christian.koenig at amd.com>
Reviewed-by: Andi Shyti <andi.shyti at linux.intel.com>
Andi
More information about the dri-devel
mailing list