]> www.infradead.org Git - users/willy/xarray.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)
commit5d0538b2b884f7fd239f6ab3b667148dc57123f1
tree060677a67b91ec06e41b57d387fe35a75d1e4628
parentcbce99527ca7c4e98db9890651d5e9dfc2fb89ac
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