commit | 37505d5768b9389a5ef7bc1efa465d4484a5462e | [log] [tgz] |
---|---|---|
author | Yan, Zheng <zheng.z.yan@intel.com> | Fri Apr 12 16:11:10 2013 +0800 |
committer | Sage Weil <sage@inktank.com> | Wed May 01 21:18:53 2013 -0700 |
tree | 208daa8785fe4847061a1dafee58ff32b5b861e6 | |
parent | 26be88087ae8a04a5b576aa2f490597b649fc132 [diff] |
ceph: take i_mutex before getting Fw cap There is deadlock as illustrated bellow. The fix is taking i_mutex before getting Fw cap reference. write truncate MDS --------------------- -------------------- -------------- get Fw cap lock i_mutex lock i_mutex (blocked) request setattr.size -> <- revoke Fw cap Signed-off-by: Yan, Zheng <zheng.z.yan@intel.com> Reviewed-by: Alex Elder <elder@inktank.com> Reviewed-by: Sage Weil <sage@inktank.com>