]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commit
hw/9pfs: Replace rwlocks with RCU variants of interfaces.
authorHarsh Prateek Bora <harsh@linux.vnet.ibm.com>
Thu, 13 Oct 2011 20:35:02 +0000 (02:05 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Mon, 31 Oct 2011 07:04:18 +0000 (12:34 +0530)
commit2583e443676e6b9259425f7d5ccaccbfa9bf7886
treed6d7394d1b53ae6b5b3516bb216ac56de7a553e9
parent5f7d05ecfda56b0b66ade19bc4d81eab46954149
hw/9pfs: Replace rwlocks with RCU variants of interfaces.

Use QLIST_INSERT_HEAD_RCU and rcu_read_lock/unlock instead of rwlocks.
Use v9fs_synth_mutex as a write-only mutex to handle concurrent writers.

Signed-off-by: Harsh Prateek Bora <harsh@linux.vnet.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/virtio-9p-synth.c