Re: [PATCH] DMA: Correct invalid assumptions in the Kconfig text

Dan Williams
2007-10-27T18:10:38Z

On 10/27/07, Haavard Skinnemoen <hskinnemoen@atmel.com> wrote:
>
> Yeah, it's a pretty serious bug if the DMA engine flags an error. But
> wouldn't it be better to BUG() in the context of the caller? That way,
> you won't necessarily bring down the whole system.
>

I see your point... We could track the caller's task_struct in
dma_async_tx_descriptor, and deliver a SIGBUS in the case of an error.
It limits the client's recovery options, but at least the damaged is
localized to the correct process. I need to go read up on what this
would imply for kernel threads like raid5d...