diff options
author | Xavi Hernandez <xhernandez@redhat.com> | 2019-07-04 13:21:33 +0200 |
---|---|---|
committer | hari gowtham <hari.gowtham005@gmail.com> | 2019-07-16 20:49:45 +0000 |
commit | cf8c11ad27ff5cbc168a73879fff851f0e630cbb (patch) | |
tree | c227ca92c06c0889c2f3b91bf54681d3e1124a76 /xlators/performance/quick-read/src/quick-read.h | |
parent | 08f8a3b8ea85cae64083f0425c7cee9500d27a16 (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#1729952
Signed-off-by: Xavi Hernandez <xhernandez@redhat.com>
Diffstat (limited to 'xlators/performance/quick-read/src/quick-read.h')
0 files changed, 0 insertions, 0 deletions