Re: [Bugfix] Set more than 32K pid_max (reformatted)

From: Petri Koistinen
Date: Tue Jan 06 2004 - 13:11:57 EST


Hi!

On Tue, 6 Jan 2004, Zhu, Yi wrote:

> On Tue, 6 Jan 2004, Marcos D. Marado Torres wrote:
>
> > >         if (!offset || !atomic_read(&map->nr_free))=
> {
> > > +               if (!offser)
> >
> > I suppose it should be "if (!offset)"...
>
> Yes, my mistake. Thanks!

Nope, my fault. Here it goes one more time, hopefully right.

Petri

--- linux-2.6/kernel/pid.c.orig 2004-01-05 17:54:46.000000000 +0200
+++ linux-2.6/kernel/pid.c 2004-01-05 17:55:35.000000000 +0200
@@ -122,6 +122,8 @@
}

if (!offset || !atomic_read(&map->nr_free)) {
+ if (!offset)
+ map--;
next_map:
map = next_free_map(map, &max_steps);
if (!map)

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