On 13-04-20, 10:40, Dave Jiang wrote: > When the channel register code was changed to allow hotplug operations, > dynamic indexing wasn't taken into account. When channels are randomly > plugged and unplugged out of order, the serial indexing breaks. Convert > channel indexing to using IDA tracking in order to allow dynamic > assignment. The previous code does not cause any regression bug for > existing channel allocation besides idxd driver since the hotplug usage > case is only used by idxd at this point. > > With this change, the chan->idr_ref is also not needed any longer. We can > have a device with no channels registered due to hot plug. The channel > device release code no longer should attempt to free the dma device id on > the last channel release. Applied, thanks -- ~Vinod