Description of problem: 1. rpc_transport object not destroyed, the PARENT_DOWN should have destroyed this object but has not, needs to be addressed as a part of different patch 2. Each xlator fini should clean up the local pool allocated by its xlator. Needs to be addresses as a part of different patch. 3. Each xlator should implement forget to free its inode_ctx. Needs to be addresses as a part of different patch. 3. Few other leaks reported by valgrind. 4. fd and fd contexts not freed. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
1. Release the fd list: - fsync the fds that are open. - Close and release all the fds that are still open 2. Handle the case when fops on the fs object that is being destroyed is called. 3. Handle the Asserts and leaks in quick_read and read-ahead xlators Read ahead asserts when conf->files is non empty which is always the case as is never destroyed. Quick-read asserts when inode_table->lru is not empty, which is almost always the case, fix this leak.