Skip to content

Commit 3203a56

Browse files
Lv Ruyibonzini
authored andcommitted
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>
1 parent 1d0e848 commit 3203a56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

arch/x86/kvm/mmu/tdp_mmu.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void kvm_mmu_uninit_tdp_mmu(struct kvm *kvm)
5151
if (!kvm->arch.tdp_mmu_enabled)
5252
return;
5353

54-
flush_workqueue(kvm->arch.tdp_mmu_zap_wq);
54+
/* Also waits for any queued work items. */
5555
destroy_workqueue(kvm->arch.tdp_mmu_zap_wq);
5656

5757
WARN_ON(!list_empty(&kvm->arch.tdp_mmu_pages));

0 commit comments

Comments
 (0)