diff options
author | Robin Murphy <robin.murphy@arm.com> | 2017-09-28 11:31:23 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2017-09-28 14:57:16 +0200 |
commit | e8b198402745ed413ed8229b2eb45d34016eb5d8 (patch) | |
tree | 4b552a320579484b7f0e8e5ada98c97e2832d12f /fs/proc/array.c | |
parent | b826ee9a4f1cbf83cadc5a307de8eea27637699a (diff) |
iommu/iova: Try harder to allocate from rcache magazine
When devices with different DMA masks are using the same domain, or for
PCI devices where we usually try a speculative 32-bit allocation first,
there is a fair possibility that the top PFN of the rcache stack at any
given time may be unsuitable for the lower limit, prompting a fallback
to allocating anew from the rbtree. Consequently, we may end up
artifically increasing pressure on the 32-bit IOVA space as unused IOVAs
accumulate lower down in the rcache stacks, while callers with 32-bit
masks also impose unnecessary rbtree overhead.
In such cases, let's try a bit harder to satisfy the allocation locally
first - scanning the whole stack should still be relatively inexpensive.
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'fs/proc/array.c')
0 files changed, 0 insertions, 0 deletions