]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: Remove obsolete comment about locking for kvm_io_bus_read/write
authorLi RongQing <lirongqing@baidu.com>
Tue, 6 May 2025 01:22:51 +0000 (09:22 +0800)
committerSean Christopherson <seanjc@google.com>
Thu, 8 May 2025 14:16:15 +0000 (07:16 -0700)
commit37d8bad41d2b0a7d269affb85979a8e4114e177a
tree06c0d7fdc9114f2fae2360f3b545dcd860defa83
parent54a1a24fea1997861622320eada7de65e0ceb614
KVM: Remove obsolete comment about locking for kvm_io_bus_read/write

Nobody is actually calling these functions with slots_lock held, The
srcu_dereference() in kvm_io_bus_read/write() precisely communicates
both what is being protected, and what provides the protection. so the
comments are no longer needed

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Li RongQing <lirongqing@baidu.com>
Link: https://lore.kernel.org/r/20250506012251.2613-1-lirongqing@baidu.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
virt/kvm/kvm_main.c