No, exit_mm will call mmput(), so that will do the wakeup as far as I can
tell.
> > if (child > 0) {
> > while (current->mm->count > 1)
> > sleep_on(current->mm->sleep);
> > }
> > return child;
> > }
>
> Interesting. Did you have a particular reason to expect this loop to be
> triggered?
No, as I disabled the recursive thing anyway. With a recursive thing you
need a while loop, but the above wouldn't work anyway (the "1" is no
longer a one at all). So you could certainly change the 'while' into an
'if'.
Linus
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/