2001-11-06 07:30:17

by Rajiv Malik

[permalink] [raw]
Subject: floppy driver multithreaded!!

hi,
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.

thanx in advance.

Best Regards,
rajiv.


2001-11-06 07:49:44

by Robert Love

[permalink] [raw]
Subject: Re: floppy driver multithreaded!!

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