DragonFly commits List (threaded) for 2004-03
Re: cvs commit: src/sys/kern kern_mpipe.c src/sys/sys mpipe.h src/sys/dev/disk/ata ata-all.c ata-disk.c ata-dma.c
Matthew Dillon wrote:
dillon 2004/03/29 08:22:24 PST
DragonFly src repository
sys/dev/disk/ata ata-all.c ata-disk.c ata-dma.c
Bring in a bunch of well tested MPIPE changes. Preallocate a minimum
number of mpipe elements when it is initialized. Use an array to cache
free MPIPE buffers nad remove the data structure overloading that was
previously occuring on the buffer itself. Add a deconstructor. Separate
the blocking and non-blocking allocation APIs into their own functions.
The new code still needs Giant, but it's getting a lot closer to being
If we are adding a destructor, shouldn't we also add a
constructor? Because otherwise it would be pointless
to have a destructor, isn't it?