ceph: try to check caps immediately after async creating finishes
[platform/kernel/linux-rpi.git] / fs / ceph / caps.c
index 1323fa2..4b159f9 100644 (file)
@@ -1916,6 +1916,8 @@ void ceph_check_caps(struct ceph_inode_info *ci, int flags)
 
        spin_lock(&ci->i_ceph_lock);
        if (ci->i_ceph_flags & CEPH_I_ASYNC_CREATE) {
+               ci->i_ceph_flags |= CEPH_I_ASYNC_CHECK_CAPS;
+
                /* Don't send messages until we get async create reply */
                spin_unlock(&ci->i_ceph_lock);
                return;