OSDN Git Service

proc: Use a dedicated lock in struct pid
[tomoyo/tomoyo-test1.git] / include / linux / pid.h
index 998ae7d..cc896f0 100644 (file)
@@ -60,8 +60,10 @@ struct pid
 {
        refcount_t count;
        unsigned int level;
+       spinlock_t lock;
        /* lists of tasks that use this pid */
        struct hlist_head tasks[PIDTYPE_MAX];
+       struct hlist_head inodes;
        /* wait queue for pidfd notifications */
        wait_queue_head_t wait_pidfd;
        struct rcu_head rcu;