Re: [PATCH 0/5] firewire: core: use XArray to maintain client resources

From: Takashi Sakamoto
Date: Tue Aug 13 2024 - 20:12:20 EST


On Tue, Aug 13, 2024 at 08:52:05AM +0900, Takashi Sakamoto wrote:
> Hi,
>
> In core function, the instances of several types of client resources
> are maintained by IDR, and the index value of each resource is passed to
> user space application as handle. As of kernel v6.0, IDR has been
> superseded by XArray and deprecated.
>
> This series of changes is to obsolete the usage of IDR with XArray.
>
> Takashi Sakamoto (5):
> firewire: core: minor code refactoring to release client resource
> firewire: core: add helper functions to convert to parent resource
> structure
> firewire: core: add helper function to detect data of iso resource
> structure
> firewire: core: code refactoring to use idr_for_each_entry() macro
> instead of idr_for_each() function
> firewire: core: use xarray instead of idr to maintain client resource
>
> drivers/firewire/core-cdev.c | 170 +++++++++++++++++++----------------
> drivers/firewire/core.h | 1 -
> 2 files changed, 94 insertions(+), 77 deletions(-)

Applied to for-next branch.


Regards

Takashi Sakamoto