diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-07-04 13:21:33 +0200 |
---|---|---|
committer | Rinku Kothiya <rkothiya@redhat.com> | 2019-07-20 07:42:59 +0000 |
commit | e69bc0a183d9cbbace0bc36de87707fc059f2c35 (patch) | |
tree | dff23cc1f20765bbbc85e4544523f62e682af482 /xlators/features/shard/src/shard.c | |
parent | 4ad6dd3ca8cd558b853c7df0d6cd34dd22dff7d3 (diff) |
core: fix deadlock between statedump and fd_anonymous()
There exists a deadlock between statedump generation and fd_anonymous()
function because they are acquiring inode table lock and inode lock in
reverse order.
This patch modifies fd_anonymous() so that it takes inode lock only when
it's really necessary, avoiding the deadlock.
Backport of:
> Change-Id: I24355447f0ea1b39e2546782ad07f0512cc381e7
> BUG: 1727068
> Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Change-Id: I24355447f0ea1b39e2546782ad07f0512cc381e7
Fixes: bz#1729950
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/features/shard/src/shard.c')
0 files changed, 0 insertions, 0 deletions