kernel-pidc-mask-the-flag-out-to-get-the-actual-value.patch removed from -mm tree
Subject: [obsolete] kernel-pidc-mask-the-flag-out-to-get-the-actual-value.patch removed from -mm tree
To: [email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 11 Jun 2013 18:28:16 -0700
The patch titled
Subject: kernel/pid.c: mask the flag out to get the actual value
has been removed from the -mm tree. Its filename was
kernel-pidc-mask-the-flag-out-to-get-the-actual-value.patch
This patch was dropped because it is obsolete
------------------------------------------------------
From: "Raphael S. Carvalho" <[email protected]>
Subject: kernel/pid.c: mask the flag out to get the actual value
This patch shouldn't be applied if those branches must only be taken when the pid_allocation(PIDNS_HASH_ADDING) flag was turned off. Otherwise, we must turn the PIDNS_HASH_ADDING flag (1U << 31) off before getting into the switch-cases.
---
kernel/pid.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
kernel/pid.c renamed from kernel/pid.c~kernel-pidc-mask-the-flag-out-to-get-the-actual-value +4 -1
@@ -264,7 +264,10 @@ void free_pid(struct pid *pid)struct upid *upid = pid->numbers + i;struct pid_namespace *ns = upid->ns;hlist_del_rcu (&upid->pid_chain); -switch (--ns->nr_hashed) { + +/* We must turn the PIDNS_HASH_ADDING flag off to +get the actual value of nr_hashed */ +switch ((--ns->nr_hashed) & ~(PIDNS_HASH_ADDING )) {case 1 :/* When all that is left in the pid namespace * is the reaper wake up the reaper. The reaper
_
Patches currently in -mm which might be from [email protected] are
kernel-auditfilterc-fixing-build-warning.patch kernel-pidc-move-statement.patch kernel-pidc-mask-the-flag-out-to-get-the-actual-value-fix.patch