Re: [PATCH] kvm: get rid of srcu idx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Oct 26, 2010 at 09:57:08AM +0200, Avi Kivity wrote:
>  On 10/26/2010 08:58 AM, Gleb Natapov wrote:
> >>
> >>  Well, you just changed where srcu index is saved. I don't see how it
> >>  could make a difference in practice.
> >>
> >If there is nested call to srcu read lock if srcu_idx is stored in vcpu
> >nested call will override previous srcu_idx value and srcu unlock will
> >not be called on it, but it will be called twice on new srcu_idx value.
> >If srcu_idx is saved on stack this will not happen, no?
> 
> Exactly.  The case where srcu_idx is passed as a pointer parameter
> is still dubious, but we can change that too.
> 
But shouldn't we disallow recursive srcu lock tacking?

--
			Gleb.
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux