Re: task switching at Page Faults

From: Andi Kleen
Date: Mon Apr 19 2004 - 16:54:35 EST


Fabiano Ramos <ramos_fabiano@xxxxxxxxxxxx> writes:
> kernel", about 2.4, and the authors:
> 1)assure that there is no process switch during
> the execution of an eception handler (aka syscall).
> they emphasize it.

They're wrong. First the system call or exception can
block and then when kernel code returns to user space
it always checks if the time slice hasn't expired.

> 2) say that the execption handler may not generate
> exceptions, except for page faults.

That's also incorrect. e.g. it can generate GPFs
(e.g. when trying to load a segment register supplied
by the user and it is not correct)
and a few other exceptions in extreme cases. Usually
these exceptions are handled without sleeping though.

-Andi

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