Thread (23 messages) flat view 23 messages, 2 authors, 2021-03-17

Re: [PATCH 12/14] swiotlb: move global variables into a new io_tlb_mem structure

From: Konrad Rzeszutek Wilk <hidden>
Date: 2021-03-17 17:52:56
Also in: linux-iommu, xen-devel

On Wed, Mar 17, 2021 at 02:53:27PM +0100, Christoph Hellwig wrote:
On Wed, Mar 17, 2021 at 01:42:07PM +0000, Konrad Rzeszutek Wilk wrote:
quoted
quoted
-	alloc_size = PAGE_ALIGN(io_tlb_nslabs * sizeof(size_t));
-	io_tlb_alloc_size = memblock_alloc(alloc_size, PAGE_SIZE);
-	if (!io_tlb_alloc_size)
-		panic("%s: Failed to allocate %zu bytes align=0x%lx\n",
-		      __func__, alloc_size, PAGE_SIZE);
Shouldn't this be converted to:
	mem->alloc_size = memblock_alloc(alloc_size, PAGE_SIZE);
	if (...)

Seems that it got lost in the search and replace?
Yes, I messed that up during the rebase.  That being said it magically
gets fixed in the next patch..
Yes. However if someone does a bisection they are going to be mighty unhappy
with you.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help