Re: [PATCH v4 8/8] swiotlb: search the software IO TLB only if a device makes use of it

2023-07-20 Thread Christoph Hellwig
On Thu, Jul 20, 2023 at 10:02:38AM +0200, Petr Tesařík wrote: > On Thu, 20 Jul 2023 08:47:44 +0200 > Christoph Hellwig wrote: > > > Any reason this can't just do a list_empty_careful on the list > > instead of adding yet another field that grows struct device? > > On which list?

Re: [PATCH v4 8/8] swiotlb: search the software IO TLB only if a device makes use of it

2023-07-20 Thread Petr Tesařík
On Thu, 20 Jul 2023 08:47:44 +0200 Christoph Hellwig wrote: > Any reason this can't just do a list_empty_careful on the list > instead of adding yet another field that grows struct device? On which list? The dma_io_tlb_pools list only contains transient pools, but a device may use bounce

Re: [PATCH v4 8/8] swiotlb: search the software IO TLB only if a device makes use of it

2023-07-20 Thread Christoph Hellwig
Any reason this can't just do a list_empty_careful on the list instead of adding yet another field that grows struct device?