Re: floppy driver multithreaded!!

From: Robert Love (rml@tech9.net)
Date: Tue Nov 06 2001 - 02:48:51 EST


On Tue, 2001-11-06 at 02:31, Rajiv Malik wrote:
> i was looking at the code of Floppy Driver by Linus, i was wondering the way
> it has been coded !! even Linus has accepted that it can be further improved
> a lot. i am thinking of making it more multithreaded, trying to find out the
> details. any help on it would be highly appreciated.

Uhm, it already is multithreaded. Kind Of. That is how a monolithic
kernel ends up working -- the exported floppy interface is threaded to
each running process that uses it. So each user space thread runs the
the kernel code in its context and you get a result of the floppy driver
being multithreaded.

Then you have the backend...the block and VM layers that obviously
aren't all in the context of a user space application. The system will
scale fine to your one floppy drive and multiple CPUs.

        Robert Love

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



This archive was generated by hypermail 2b29 : Wed Nov 07 2001 - 21:00:29 EST