Commit e0e934aa authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

restore: shmems -- Use cr_wait_init helper

Just in a sake of consistency
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent 86d11443
......@@ -209,6 +209,8 @@ static int collect_shmem(int pid, struct shmem_entry *e)
entries[nr_shmems].pid = pid;
entries[nr_shmems].real_pid = 0;
cr_wait_init(&entries[nr_shmems].lock);
shmems->nr_shmems++;
return 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment