Re: dmaengine.c: question about device_alloc_chan_resources

From: Haavard Skinnemoen
Date: Thu Sep 18 2008 - 10:46:28 EST


Timur Tabi <timur@xxxxxxxxxxxxx> wrote:
> Haavard Skinnemoen wrote:
>
> > Wouldn't it be better if the dmaengine layer made sure it didn't pass
> > the same channel several times to a client?
>
> Wouldn't that require it to keep track of which clients have already seen which
> channels? It might make more sense, but it's probably easier the current way.

I guess so. What would be even more simple is to simply prevent other
clients from taking a channel once someone has acked it, which would be
perfect for my purposes, but perhaps not everyone else's...

How common is for several clients to use the same channel anyway
though? Wouldn't you risk stalling the network stack if the md subsystem
has submitted a large xor operation on the same channel that the
network stack was about to use?

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