Re: [PATCH 6/8] RDMA/devices: Use xarray to store the clients

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Feb 04, 2019 at 02:17:49PM -0700, Jason Gunthorpe wrote:
> +	 * The add/remove callbacks must be called in FIFO/LIFO order. To
> +	 * achieve this we assign client_ids so they are sorted in
> +	 * registration order, and retain a linked list we can reverse iterate
> +	 * to get the LIFO order. The extra linked list can go away if xarray
> +	 * learns to reverse iterate.

I've just been waiting for a customer to add an xa_for_each_rev() ;-)
I'll put it on the todo list ... unless someone else wants to do it first.




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux