summaryrefslogtreecommitdiff
path: root/Documentation/filesystems/ubifs-authentication.md
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2018-12-10 17:00:29 +0300
committerChristoph Hellwig <hch@lst.de>2018-12-11 16:31:17 +0300
commit2b9d9ac02b9d8d32c515c82bb17401c429f160ab (patch)
tree8f224b9fe62c452686c7b781f8a742c78e619605 /Documentation/filesystems/ubifs-authentication.md
parentf737b095c60c635db260e02fdb9f0efb9f3360c4 (diff)
downloadlinux-2b9d9ac02b9d8d32c515c82bb17401c429f160ab.tar.xz
dma-debug: Dynamically expand the dma_debug_entry pool
Certain drivers such as large multi-queue network adapters can use pools of mapped DMA buffers larger than the default dma_debug_entry pool of 65536 entries, with the result that merely probing such a device can cause DMA debug to disable itself during boot unless explicitly given an appropriate "dma_debug_entries=..." option. Developers trying to debug some other driver on such a system may not be immediately aware of this, and at worst it can hide bugs if they fail to realise that dma-debug has already disabled itself unexpectedly by the time their code of interest gets to run. Even once they do realise, it can be a bit of a pain to emprirically determine a suitable number of preallocated entries to configure, short of massively over-allocating. There's really no need for such a static limit, though, since we can quite easily expand the pool at runtime in those rare cases that the preallocated entries are insufficient, which is arguably the least surprising and most useful behaviour. To that end, refactor the prealloc_memory() logic a little bit to generalise it for runtime reallocations as well. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Tested-by: Qian Cai <cai@lca.pw> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'Documentation/filesystems/ubifs-authentication.md')
0 files changed, 0 insertions, 0 deletions