OSDN Git Service

swiotlb: panic if nslabs is too small
authorDongli Zhang <dongli.zhang@oracle.com>
Sat, 11 Jun 2022 08:25:14 +0000 (01:25 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 22 Jun 2022 10:42:09 +0000 (12:42 +0200)
commit0bf28fc40d89b1a3e00d1b79473bad4e9ca20ad1
tree8905b87243769254b100497f5aa3b506cf4460cf
parent04c14e8e38b06edf934e9bb0cc504afd94d593fb
swiotlb: panic if nslabs is too small

Panic on purpose if nslabs is too small, in order to sync with the remap
retry logic.

In addition, print the number of bytes for tlb alloc failure.

Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
kernel/dma/swiotlb.c