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 <[email protected]> Signed-off-by: Lv Ruyi <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent 1d0e848 commit 3203a56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)