Re: SCHED_IDLE patch is a source of DoS

Richard Gooch (rgooch@atnf.csiro.au)
Wed, 11 Nov 1998 23:42:50 +1100


Rik van Riel writes:
> Maybe we can change the up()/down() and lock()/unlock()
> macros/functions to also atomically increase and
> decrease p->locks_held ???
> Would that help or am I chasing ghosts here?

Why not just drop the resource lock before calling schedule() and
grabbing it again afterwards?

Regards,

Richard....

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