|
From: | Paolo Bonzini |
Subject: | Re: [Qemu-devel] [PATCH 10/10] qdev: fix create in place obj's life cycle problem |
Date: | Tue, 28 Aug 2012 12:05:52 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120717 Thunderbird/14.0 |
Il 28/08/2012 11:42, Jan Kiszka ha scritto: > Context A Context B > --------- --------- > object = lookup() > deregister(object) > modify(object) -> invalid state > ... use(object) > modify(object) -> valid state > register(object) > > And with "object" I'm not talking about QOM but any data structure. If you want to avoid locks, the only way to do so is RCU. Then you do not modify object at all. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |