Re: [PATCH] pid: Don't hash pid 0.

From: Andrew Morton
Date: Sun Jan 29 2006 - 03:36:08 EST


ebiederm@xxxxxxxxxxxx (Eric W. Biederman) wrote:
>
> pid 0 is never exported to userspace, so hashing it servers no useful
> purpose.

uh-huh.

> Explicitly not hashing pid 0 allows struct pid to be marked as not
> hashed, and it allows us to avoid checks if for pid 0 when searching
> for processes to signal if pid 0 does not have a special meaning.

Were you planning on sending a patch to avoid those checks? Because right
now, this patch looks like a net loss.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/