Re: [PATCH 4/6] kvm tools: Add rwlock wrapper

Sasha Levin
2011-05-29T16:23:28Z

On Sun, 2011-05-29 at 08:31 -0700, Paul E. McKenney wrote:
> This is very important even if no write path ever becomes more than
> just occasional. If you don't mark the read paths like Ingo suggests,
> your one-year-from-now self will be very annoyed at you, as the code
> will be quite difficult to understand. And anyone else trying to
> read your code will be even more annoyed. ;-)

I very much agree with that. Working on the code I'm trying to separate
between the pause/unpause of the guest, and a 'brlock' lock which allows
for very cheap reads and very expensive writes.

--

Sasha.