mcctrl: clean up pagers for file objects to avoid memory leak

This commit is contained in:
Balazs Gerofi
2017-06-11 17:07:47 +09:00
parent 7773c4aef6
commit ab915f3331
3 changed files with 56 additions and 0 deletions

View File

@@ -970,6 +970,8 @@ void mcctrl_put_per_proc_data(struct mcctrl_per_proc_data *ppd)
ihk_ikc_spinlock_unlock(&ppd->wq_list_lock, flags);
kfree(ppd);
pager_remove_process();
}
@@ -1468,6 +1470,8 @@ int mcexec_create_per_process_data(ihk_os_t os)
return -EINVAL;
}
pager_add_process();
dprintk("%s: PID: %d, counter: %d\n",
__FUNCTION__, ppd->pid, atomic_read(&ppd->refcount));