Re: [Qemu-devel] [PATCH 2/2] 9p-synth: use mutex on read-side

2012-08-18 Thread Paolo Bonzini
Il 13/08/2012 21:13, Harsh Bora ha scritto: >> > > Hi Paolo, > > The rcu_read_[un]lock() macros were added as no-ops (based on your > inputs on #qemu) to replace reader-writer locks with RCU based locking > as suggested while proposing QemuRWLock API for RW locks (See > http://lists.gnu.org/archi

Re: [Qemu-devel] [PATCH 2/2] 9p-synth: use mutex on read-side

2012-08-13 Thread Harsh Bora
On 08/08/2012 05:25 PM, Paolo Bonzini wrote: Even with the fix in the previous patch, the lockless handling of paths in 9p-synth is wrong. Paths can outlive rcu_read_unlock arbitrarily via the V9fsPath objects that 9p-synth creates. This would require a reference counting mechanism that is not

[Qemu-devel] [PATCH 2/2] 9p-synth: use mutex on read-side

2012-08-08 Thread Paolo Bonzini
Even with the fix in the previous patch, the lockless handling of paths in 9p-synth is wrong. Paths can outlive rcu_read_unlock arbitrarily via the V9fsPath objects that 9p-synth creates. This would require a reference counting mechanism that is not there and is quite hard to retrofit into V9fsPa