Skip to content
Commit 53b29c33 authored by Dongli Zhang's avatar Dongli Zhang Committed by Konrad Rzeszutek Wilk
Browse files

swiotlb: save io_tlb_used to local variable before leaving critical section



When swiotlb is full, the kernel would print io_tlb_used. However, the
result might be inaccurate at that time because we have left the critical
section protected by spinlock.

Therefore, we backup the io_tlb_used into local variable before leaving
critical section.

Fixes: 83ca2594 ("swiotlb: dump used and total slots when swiotlb buffer is full")
Suggested-by: default avatarHåkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: default avatarDongli Zhang <dongli.zhang@oracle.com>
Signed-off-by: default avatarKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
parent 83ca2594
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment