]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: wake up i_cap_wq in ceph_add_cap
authorSage Weil <sage@newdream.net>
Tue, 3 Mar 2009 20:28:11 +0000 (12:28 -0800)
committerSage Weil <sage@newdream.net>
Tue, 3 Mar 2009 20:28:11 +0000 (12:28 -0800)
We could a thread blocked on caps when we are issued a new cap in
another thread.  They need to be woken up.

src/kernel/caps.c

index adf91cfb013e876084a6693708200ea50b883c83..1ac2b698b6e72fb9b75abf285075fa9f7e46396d 100644 (file)
@@ -272,6 +272,7 @@ retry:
        spin_unlock(&inode->i_lock);
        if (is_first)
                igrab(inode);
+       wake_up(&ci->i_cap_wq);
        kfree(new_cap);
        return 0;
 }