Re: [PATCH] generic signal code (small new feature - userspacesignal mask), kernel 2.6.16
From: Nicholas Miell
Date: Mon Oct 16 2006 - 19:16:05 EST
On Mon, 2006-10-16 at 15:28 +0200, Andi Kleen wrote:
> Linus Torvalds <torvalds@xxxxxxxx> writes:
> >
> > Why? You're doing user-space accesses from within critical sections with a
> > spinlock, and that's just a big no-no. Think page faults, swapping etc.
>
> He could pin the page in memory like futexes do. One page pinned
> per thread shouldn't be a big DOS issue either.
>
> -Andi
Whatever the final solution ends up being (assuming this actually goes
somewhere), it should be extensible enough for other uses (for example,
some sort of "please don't preempt me right now" hint for use with
pthread spinlocks.)
--
Nicholas Miell <nmiell@xxxxxxxxxxx>
-
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/