mcctrl: clean up pagers for file objects to avoid memory leak
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user