Re: [PATCH v2 4/4] swiotlb: Free tbl memory in swiotlb_exit()

2021-07-31 Thread Guenter Roeck
On 7/31/21 7:29 PM, Konrad Rzeszutek Wilk wrote: On Sat, Jul 31, 2021 at 11:26:11AM -0700, Guenter Roeck wrote: Hi, On Tue, Jul 20, 2021 at 02:38:26PM +0100, Will Deacon wrote: Although swiotlb_exit() frees the 'slots' metadata array referenced by 'io_tlb_default_mem', it leaves the underlying

Re: [PATCH v2 4/4] swiotlb: Free tbl memory in swiotlb_exit()

2021-07-31 Thread Konrad Rzeszutek Wilk
On Sat, Jul 31, 2021 at 11:26:11AM -0700, Guenter Roeck wrote: > Hi, > > On Tue, Jul 20, 2021 at 02:38:26PM +0100, Will Deacon wrote: > > Although swiotlb_exit() frees the 'slots' metadata array referenced by > > 'io_tlb_default_mem', it leaves the underlying buffer pages allocated > > despite no

Re: [PATCH v2 4/4] swiotlb: Free tbl memory in swiotlb_exit()

2021-07-31 Thread Guenter Roeck
Hi, On Tue, Jul 20, 2021 at 02:38:26PM +0100, Will Deacon wrote: > Although swiotlb_exit() frees the 'slots' metadata array referenced by > 'io_tlb_default_mem', it leaves the underlying buffer pages allocated > despite no longer being usable. > > Extend swiotlb_exit() to free the buffer pages as

[PATCH v2 4/4] swiotlb: Free tbl memory in swiotlb_exit()

2021-07-20 Thread Will Deacon
Although swiotlb_exit() frees the 'slots' metadata array referenced by 'io_tlb_default_mem', it leaves the underlying buffer pages allocated despite no longer being usable. Extend swiotlb_exit() to free the buffer pages as well as the slots array. Cc: Claire Chang Cc: Christoph Hellwig Cc: Robi