]> git.baikalelectronics.ru Git - kernel.git/commit
swiotlb: lift the double initialization protection from xen-swiotlb
authorChristoph Hellwig <hch@lst.de>
Mon, 1 Mar 2021 07:44:31 +0000 (08:44 +0100)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 17 Mar 2021 00:40:49 +0000 (00:40 +0000)
commitb324acc7b46653f0f1be54c5fc54597ff1d6f898
tree060677a67b91ec06e41b57d387fe35a75d1e4628
parentc50fd490c0e35ee278eeb6e4df363d24df001782
swiotlb: lift the double initialization protection from xen-swiotlb

Lift the double initialization protection from xen-swiotlb to the core
code to avoid exposing too many swiotlb internals.  Also upgrade the
check to a warning as it should not happen.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c
kernel/dma/swiotlb.c