Skip to content
Commit e19f8fa6 authored by Rob Clark's avatar Rob Clark Committed by Christoph Hellwig
Browse files

dma-debug: make things less spammy under memory pressure



Limit the error msg to avoid flooding the console.  If you have a lot of
threads hitting this at once, they could have already gotten passed the
dma_debug_disabled() check before they get to the point of allocation
failure, resulting in quite a lot of this error message spamming the
log.  Use pr_err_once() to limit that.

Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
parent 4a37f3dd
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment