Re: [RFC][PATCH] BKL reduction in do_exit

Linus Torvalds (torvalds@transmeta.com)
Wed, 3 Apr 2002 09:50:37 -0800 (PST)


On Wed, 3 Apr 2002, Dave Hansen wrote:
>
> Nobody had anything to sayabout it, so here's a patch. It moves the
> disassociate_ctty(1) up, and releases the BKl after it gets done. Is
> this a sane thing to do, or do some of those exit_*() functions still
> need the tty?

I'd prefer to have the BKL just moved into the functions that need it, and
removed altogether from do_exit().

That's especially true as I don't know if sem_exit() actually needs the
BKL any more at all - so that if it doesn't, we can just remove it from
there (at which point it is a local implementation issue, rather than a
cross-module thing).

The disassociate_tty thing falls under a similar heading - we're going to
have to fix up the tty layer some day anyway, let's make the BKL detail a
tty layer internal thing.

Linus

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/