diff options
author | Lv Ruyi <lv.ruyi@zte.com.cn> | 2022-04-01 08:35:30 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-04-05 08:11:12 -0400 |
commit | 3203a56a0f0eaaf4ea7fc01467378c4bce3841ff (patch) | |
tree | 44e02d5d48e410427a03e0edc8a7c3bb9e60b3e9 /arch | |
parent | 1d0e84806047f38027d7572adb4702ef7c09b317 (diff) | |
download | linux-stable-3203a56a0f0eaaf4ea7fc01467378c4bce3841ff.tar.gz linux-stable-3203a56a0f0eaaf4ea7fc01467378c4bce3841ff.tar.bz2 linux-stable-3203a56a0f0eaaf4ea7fc01467378c4bce3841ff.zip |
KVM: x86/mmu: remove unnecessary flush_workqueue()
All work currently pending will be done first by calling destroy_workqueue,
so there is unnecessary to flush it explicitly.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220401083530.2407703-1-lv.ruyi@zte.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/kvm/mmu/tdp_mmu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu/tdp_mmu.c b/arch/x86/kvm/mmu/tdp_mmu.c index d71d177ae6b8..c472769e0300 100644 --- a/arch/x86/kvm/mmu/tdp_mmu.c +++ b/arch/x86/kvm/mmu/tdp_mmu.c @@ -51,7 +51,7 @@ void kvm_mmu_uninit_tdp_mmu(struct kvm *kvm) if (!kvm->arch.tdp_mmu_enabled) return; - flush_workqueue(kvm->arch.tdp_mmu_zap_wq); + /* Also waits for any queued work items. */ destroy_workqueue(kvm->arch.tdp_mmu_zap_wq); WARN_ON(!list_empty(&kvm->arch.tdp_mmu_pages)); |