[PATCH v3 3/3] iova: defer maple tree erase on GFP_ATOMIC failure
Rik van Riel
riel at surriel.com
Fri Jun 19 11:54:53 PDT 2026
On Fri, 2026-06-19 at 09:13 -0300, Jason Gunthorpe wrote:
> On Fri, Jun 19, 2026 at 12:54:13AM -0400, Liam R. Howlett wrote:
> >
> > no, but how often is there a failure? Would walking the list and
> > writing NULLs be out of the question (I really don't know, sorry if
> > it's
> > a dumb one)?
>
> Yeah, this is what I was thinking. Should never happen? I wouldn't
> burn memory in each node to make an emergency recovery run faster.
>
> The idea of keeping track of the high/low along with the flag makes
> sense, it will narrow the IOVA range to search.
>
I've got this in v4 of the tree now.
One open question is whether cleanup should happen
from the next allocation, or whether we should
move that into a work item that runs in a sleepable
context.
--
All Rights Reversed.
More information about the maple-tree
mailing list