ceph: wait for the first reply of inflight async unlink
[sfrench/cifs-2.6.git] / fs / ceph / super.c
index 40140805bdcfe924d2521c9eba068e7112a6c3ec..5539f6c87a45e3a8923bb7632e3cb1c9743f1545 100644 (file)
@@ -816,6 +816,9 @@ static struct ceph_fs_client *create_fs_client(struct ceph_mount_options *fsopt,
        if (!fsc->cap_wq)
                goto fail_inode_wq;
 
+       hash_init(fsc->async_unlink_conflict);
+       spin_lock_init(&fsc->async_unlink_conflict_lock);
+
        spin_lock(&ceph_fsc_lock);
        list_add_tail(&fsc->metric_wakeup, &ceph_fsc_list);
        spin_unlock(&ceph_fsc_lock);