hw/9pfs: Use read-write lock for protecting fid path.
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Tue, 24 May 2011 09:40:56 +0000 (15:10 +0530)
committerAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 22 Sep 2011 16:08:52 +0000 (21:38 +0530)
commitec19868f73c5661728f6799a16e9fa5816c8f006
tree1d741e85dfe584b35a4a5e69a086d7b19fafd0ad
parent0edaa568eb0f63b5b21a7b475f5a79f20b0d4a7c
hw/9pfs: Use read-write lock for protecting fid path.

On rename we take the write lock and this ensure path
doesn't change as we operate on them.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
hw/9pfs/codir.c
hw/9pfs/cofile.c
hw/9pfs/cofs.c
hw/9pfs/coxattr.c
hw/9pfs/virtio-9p-coth.h
hw/9pfs/virtio-9p-device.c
hw/9pfs/virtio-9p.c
hw/9pfs/virtio-9p.h