[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <f18bb070-9767-3b5c-8a40-3c95d5740e1d@amd.com>
Date: Tue, 29 Aug 2023 14:35:34 -0400
From: James Zhu <jamesz@....com>
To: Matthew Wilcox <willy@...radead.org>
Cc: Michał Winiarski <michal.winiarski@...el.com>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
intel-gfx@...ts.freedesktop.org, David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>,
Maxime Ripard <mripard@...nel.org>,
Thomas Zimmermann <tzimmermann@...e.de>,
Simon Ser <contact@...rsion.fr>,
Oded Gabbay <ogabbay@...nel.org>,
Christian König <christian.koenig@....com>,
James Zhu <James.Zhu@....com>,
Pekka Paalanen <pekka.paalanen@...labora.com>,
Emil Velikov <emil.l.velikov@...il.com>
Subject: Re: [PATCH v6 1/4] drm: Use XArray instead of IDR for minors
On 2023-08-29 14:33, Matthew Wilcox wrote:
> On Tue, Aug 29, 2023 at 01:34:22PM -0400, James Zhu wrote:
>>>>> @@ -1067,7 +1055,7 @@ static void drm_core_exit(void)
>>>>> unregister_chrdev(DRM_MAJOR, "drm");
>>>>> debugfs_remove(drm_debugfs_root);
>>>>> drm_sysfs_destroy();
>>>>> - idr_destroy(&drm_minors_idr);
>>>> [JZ] Should we call xa_destroy instead here?
>>> We could, if we expect the xarray to potentially not be empty.
>>> From what I understand - all minors should be released at this point.
>> [JZ] In practice, adding destroy here will be better.
> Why do you say that?
[JZ] In case, the future, INIT adds something, need DESTROY to free
completely.
Powered by blists - more mailing lists