Re: /proc/sys/kernel/pid_max issues

From: Anton Blanchard
Date: Sun Sep 12 2004 - 08:40:14 EST



> /*
> * the semaphore definition
> */
> struct rw_semaphore {
> /* XXX this should be able to be an atomic_t -- paulus */
> signed int count;
> #define RWSEM_UNLOCKED_VALUE 0x00000000
> #define RWSEM_ACTIVE_BIAS 0x00000001
> #define RWSEM_ACTIVE_MASK 0x0000ffff
>
> that counter is split in 2 16 bit entities....

Yuck, 64k waiters is asking for trouble. BTW x86-64 mentions it can only
handle 32k writers, that probably wants looking at.

Anton
-
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/