On Thursday 25 May 2006 11:58, Jeff Garzik wrote:Muli Ben-Yehuda wrote:On Thu, May 25, 2006 at 12:35:07AM -0400, Jeff Garzik wrote:When you are adding a check that will _never_ be hit in production, to the _hottest_ paths in the kernel, you can be assured it matters...Jon Mason wrote:Are they really very hot? I mean if you're calling the DMA API, you're>From Andi Kleen's comments on the original Calgary patch, moveEven though BUG_ON() includes unlikely(), this introduces additional tests in very hot paths.
valid_dma_direction into the calling functions.
Signed-off-by: Muli Ben-Yehuda <muli@xxxxxxxxxx>
Signed-off-by: Jon Mason <jdmason@xxxxxxxxxx>
about to frob the hardware or have already frobbed it - does this
check really matter?
pci_dma_* shouldn't be that hot. Or at least IO usually has so much
overhead that some more bugging shouldn't matter.
On the other hand if the problem of passing wrong parameters here
isn't common I would be ok with dropping them.