Searched refs:ecryptfs_kthread_ctl (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/fs/ecryptfs/
H A Dkthread.c38 static struct ecryptfs_kthread_ctl { struct
44 } ecryptfs_kthread_ctl; variable in typeref:struct:ecryptfs_kthread_ctl
64 ecryptfs_kthread_ctl.wait, ecryptfs_threadfn()
65 (!list_empty(&ecryptfs_kthread_ctl.req_list) ecryptfs_threadfn()
67 mutex_lock(&ecryptfs_kthread_ctl.mux); ecryptfs_threadfn()
68 if (ecryptfs_kthread_ctl.flags & ECRYPTFS_KTHREAD_ZOMBIE) { ecryptfs_threadfn()
69 mutex_unlock(&ecryptfs_kthread_ctl.mux); ecryptfs_threadfn()
72 while (!list_empty(&ecryptfs_kthread_ctl.req_list)) { ecryptfs_threadfn()
73 req = list_first_entry(&ecryptfs_kthread_ctl.req_list, ecryptfs_threadfn()
81 mutex_unlock(&ecryptfs_kthread_ctl.mux); ecryptfs_threadfn()
91 mutex_init(&ecryptfs_kthread_ctl.mux); ecryptfs_init_kthread()
92 init_waitqueue_head(&ecryptfs_kthread_ctl.wait); ecryptfs_init_kthread()
93 INIT_LIST_HEAD(&ecryptfs_kthread_ctl.req_list); ecryptfs_init_kthread()
108 mutex_lock(&ecryptfs_kthread_ctl.mux); ecryptfs_destroy_kthread()
109 ecryptfs_kthread_ctl.flags |= ECRYPTFS_KTHREAD_ZOMBIE; ecryptfs_destroy_kthread()
110 list_for_each_entry_safe(req, tmp, &ecryptfs_kthread_ctl.req_list, ecryptfs_destroy_kthread()
116 mutex_unlock(&ecryptfs_kthread_ctl.mux); ecryptfs_destroy_kthread()
118 wake_up(&ecryptfs_kthread_ctl.wait); ecryptfs_destroy_kthread()
156 mutex_lock(&ecryptfs_kthread_ctl.mux); ecryptfs_privileged_open()
157 if (ecryptfs_kthread_ctl.flags & ECRYPTFS_KTHREAD_ZOMBIE) { ecryptfs_privileged_open()
159 mutex_unlock(&ecryptfs_kthread_ctl.mux); ecryptfs_privileged_open()
165 list_add_tail(&req.kthread_ctl_list, &ecryptfs_kthread_ctl.req_list); ecryptfs_privileged_open()
166 mutex_unlock(&ecryptfs_kthread_ctl.mux); ecryptfs_privileged_open()
167 wake_up(&ecryptfs_kthread_ctl.wait); ecryptfs_privileged_open()

Completed in 77 milliseconds