Replace `1` with the actual mutex_is_locked() check.
Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Michal Luczaj <mhal@rbox.co>
Link: https://lore.kernel.org/r/20230107001256.2365304-5-mhal@rbox.co
[sean: delete the comment that explained the hardocded '1']
Signed-off-by: Sean Christopherson <seanjc@google.com>
        }
 
        mutex_lock(&kvm->lock);
-       /* The per-VM filter is protected by kvm->lock... */
-       old_filter = rcu_replace_pointer(kvm->arch.msr_filter, new_filter, 1);
+       old_filter = rcu_replace_pointer(kvm->arch.msr_filter, new_filter,
+                                        mutex_is_locked(&kvm->lock));
        mutex_unlock(&kvm->lock);
        synchronize_srcu(&kvm->srcu);