Patchwork [3/9] Global rename lock

login
register
mail settings
Submitter Arun Bharadwaj
Date Oct. 14, 2010, 12:24 p.m.
Message ID <20101014122400.2238.57159.stgit@localhost6.localdomain6>
Download mbox | patch
Permalink /patch/67810/
State New
Headers show

Comments

Arun Bharadwaj - Oct. 14, 2010, 12:24 p.m.
From: Sripathi Kodi <sripathik@in.ibm.com>


---
 hw/virtio-9p.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

Patch

diff --git a/hw/virtio-9p.c b/hw/virtio-9p.c
index 02a4ec4..ef6175a 100644
--- a/hw/virtio-9p.c
+++ b/hw/virtio-9p.c
@@ -21,6 +21,8 @@ 
 
 int debug_9p_pdu;
 
+QemuRWMutex global_rename_lock;
+
 enum {
     Oread   = 0x00,
     Owrite  = 0x01,
@@ -3906,6 +3908,7 @@  VirtIODevice *virtio_9p_init(DeviceState *dev, V9fsConf *conf)
     QTAILQ_INIT(&v9fs_async_struct.post_op_list);
     qemu_mutex_init(&(v9fs_async_struct.lock));
     qemu_rwmutex_init(&(s->fid_list_lock));
+    qemu_rwmutex_init(&global_rename_lock);
     /* Create async queue. */
 
     (void)v9fs_do_async_posix;