procfs_read/write(): rewrite synchronization for scalability and correctness

This commit is contained in:
Balazs Gerofi
2016-12-28 14:17:17 +09:00
parent 536ce9f927
commit 40978d162e
6 changed files with 162 additions and 152 deletions

View File

@@ -1214,6 +1214,7 @@ int mcexec_open_exec(ihk_os_t os, char * __user filename)
INIT_LIST_HEAD(&ppd->wq_req_list);
INIT_LIST_HEAD(&ppd->wq_list_exact);
init_waitqueue_head(&ppd->wq_prepare);
init_waitqueue_head(&ppd->wq_procfs);
spin_lock_init(&ppd->wq_list_lock);
memset(&ppd->cpu_set, 0, sizeof(cpumask_t));
ppd->ikc_target_cpu = 0;