diff options
author | Yan, Zheng <zheng.z.yan@intel.com> | 2013-04-12 16:11:10 +0800 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2013-05-01 21:18:53 -0700 |
commit | 37505d5768b9389a5ef7bc1efa465d4484a5462e (patch) | |
tree | 208daa8785fe4847061a1dafee58ff32b5b861e6 /crypto/cast6_generic.c | |
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>
Diffstat (limited to 'crypto/cast6_generic.c')
0 files changed, 0 insertions, 0 deletions