On Wed, Jun 04, 2008 at 09:09:05PM +0400, Oleg Nesterov wrote:
We're changing the behaviour anyway. Let's have the discussion and get
it right.
In my opinion, not checking for TASK_STOPPED or TASK_TRACED previously was
an oversight. This should be fixed.
That's certainly an interesting conversation to have.
Just deleting the above two lines should do it?
Getting rid of the extra braces is against CodingStyle:
Do not unnecessarily use braces where a single statement will do.
if (condition)
action();
This does not apply if one branch of a conditional statement is a single
statement. Use braces in both branches.
if (condition) {
do_this();
do_that();
} else {
otherwise();
}
This patch is going to add quite a few cycles to schedule(). Has anyone
done any benchmarks with a schedule-heavy workload?
I don't think signal_pending_state() should be in signal.c, just put it
in sched.c along with its only caller. That way, gcc can choose to
inline it if that's more efficient.
--
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours. We can't possibly take such
a retrograde step."
--