]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb-xen: limit init retries
authorJan Beulich <jbeulich@suse.com>
Tue, 7 Sep 2021 12:06:37 +0000 (14:06 +0200)
committerJuergen Gross <jgross@suse.com>
Wed, 15 Sep 2021 06:42:04 +0000 (08:42 +0200)
commitb56e99bd7038e681c201fa288d30103a043d729d
tree5ddf6b4d58f64e7196734a2ef9b38a75f226c95b
parentf975253af0c330f6ce719eeba1e48ed1ca93c80b
swiotlb-xen: limit init retries

Due to the use of max(1024, ...) there's no point retrying (and issuing
bogus log messages) when the number of slabs is already no larger than
this minimum value.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/984fa426-2b7b-4b77-5ce8-766619575b7f@suse.com
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/swiotlb-xen.c