From: Sage Weil Date: Tue, 3 Mar 2009 20:28:11 +0000 (-0800) Subject: kclient: wake up i_cap_wq in ceph_add_cap X-Git-Tag: v0.7~55^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=93ef8a3667e2bd75de877d838c4f7518a5709876;p=ceph.git kclient: wake up i_cap_wq in ceph_add_cap We could a thread blocked on caps when we are issued a new cap in another thread. They need to be woken up. --- diff --git a/src/kernel/caps.c b/src/kernel/caps.c index adf91cfb013e8..1ac2b698b6e72 100644 --- a/src/kernel/caps.c +++ b/src/kernel/caps.c @@ -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; }