diff options
author | HuangShujun <549702281@qq.com> | 2019-12-05 10:07:10 +0200 |
---|---|---|
committer | Amar Tumballi <amarts@gmail.com> | 2019-12-10 05:00:54 +0000 |
commit | 99044a5cedcff9a9eec40a07ecb32bd66271cd02 (patch) | |
tree | 47b76945e59601af8a275137bb486fbe4c08ab66 /glusterfsd/src | |
parent | b20b60027c7212d7ecba96a7d75b5f5cbcc08989 (diff) |
To fix readdir-ahead memory leak
Glusterfs client process has memory leak if create serveral files under one folder, and delete the folder.
According to statedump, the ref counts of readdir-ahead is bigger than zero in the inode table. Readdir-ahead get parent inode by inode_parent in rda_mark_inode_dirty when each rda_writev_cbk,the inode ref count of parent folder will be increased in inode_parent, but readdir-ahead do not unref it later.
The correction is unref the parent inode at the end of rda_mark_inode_dirty
Fixes: bz#1779055
Signed-off-by: HuangShujun <549702281@qq.com>
Change-Id: Iee68ab1089cbc2fbc4185b93720fb1f66ee89524
Diffstat (limited to 'glusterfsd/src')
0 files changed, 0 insertions, 0 deletions