diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-09-07 15:05:54 +0300 |
---|---|---|
committer | Juergen Gross <jgross@suse.com> | 2021-09-15 09:42:04 +0300 |
commit | 79ca5f778aafbd69727d577b58d913c9ce8400be (patch) | |
tree | a676b63eaa5644780c15ec284f5a5a3a869bb468 /drivers/xen | |
parent | d9a688add3d412c840e31060847a6a297b552316 (diff) | |
download | linux-79ca5f778aafbd69727d577b58d913c9ce8400be.tar.xz |
swiotlb-xen: suppress certain init retries
Only on the 2nd of the paths leading to xen_swiotlb_init()'s "error"
label it is useful to retry the allocation; the first one did already
iterate through all possible order values.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/56477481-87da-4962-9661-5e1b277efde0@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r-- | drivers/xen/swiotlb-xen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index 08fc694f05b7..6520d05e62ef 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c @@ -184,7 +184,7 @@ retry: order--; } if (!start) - goto error; + goto exit; if (order != get_order(bytes)) { pr_warn("Warning: only able to allocate %ld MB for software IO TLB\n", (PAGE_SIZE << order) >> 20); @@ -214,6 +214,7 @@ error: pr_info("Lowering to %luMB\n", bytes >> 20); goto retry; } +exit: pr_err("%s (rc:%d)\n", xen_swiotlb_error(m_ret), rc); return rc; } |