Re: mlock: Make the mlock system call interruptible by fatal

From: Andrew Morton
Date: Wed Sep 24 2008 - 12:21:34 EST


On Wed, 24 Sep 2008 11:22:55 +0100 Alan Cox <alan@xxxxxxxxxxxxxxxxxxx> wrote:

> > > Can we do
> > >
> > > return i ? i : -EINTR;
> > >
> > > in the usual fashion?
> >
> > Fixed.
>
> If its only interruptible by fatal signals why do we care what the return
> is ?
>

For the immediate in-kernel caller. __get_user_pages() took a ref on a
few pages which the caller needs to undo before doing anything else
(like processing the signal).

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