|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH 1/2] xen/rwlocks: call preempt_disable() when taking a rwlock
On 13.03.20 11:40, Julien Grall wrote: Hi Juergen, On 13/03/2020 10:15, Jürgen Groß wrote:On 13.03.20 11:02, Julien Grall wrote:Hi Juergen, On 13/03/2020 08:05, Juergen Gross wrote: Today probability of preemption is 0. Even with preemption added the probability to be preempted in a sequence of about a dozen instructions is _very_ low. I'm not opposed doing the modification you are requesting, but would like to hear a second opinion on that topic, especially as I'd need to add another preempt_enable() call when following your advice.I don't really see the problem with adding a new preemption_enable() call. But the code can also be reworked to have only one call... Its the dynamical path I'm speaking of. Accessing a local cpu variable is not that cheap, and in case we add preemption in the future preempt_enable() will become even more expensive. Juergen _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |