Re: [PATCH] ceph: move ceph_find_inode() outside the s_mutex

2014-09-18 Thread Sage Weil
On Wed, 17 Sep 2014, Yan, Zheng wrote: ceph_find_inode() may wait on freeing inode, using it inside the s_mutex may cause deadlock. (the freeing inode is waiting for OSD read reply, but dispatch thread is blocked by the s_mutex) Signed-off-by: Yan, Zheng z...@redhat.com Reviewed-by: Sage

[PATCH] ceph: move ceph_find_inode() outside the s_mutex

2014-09-16 Thread Yan, Zheng
ceph_find_inode() may wait on freeing inode, using it inside the s_mutex may cause deadlock. (the freeing inode is waiting for OSD read reply, but dispatch thread is blocked by the s_mutex) Signed-off-by: Yan, Zheng z...@redhat.com --- fs/ceph/caps.c | 11 ++- fs/ceph/mds_client.c