tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: missing bus_dmamap_unload() in mpt_timeout()?



On Sun, Nov 24, 2013 at 07:29:25PM +0100, Edgar Fuß wrote:
> > You shouln't bus_dmamap_unload() before stopping the IOC.
> Thanks.
> 
> Well, in my case, it's not going to matter because I will, on timeout, 
> restart the IOC anyway.
> But if I could get away without restarting the IOC, what am I supposed to do? 
> I can't know whether the IOC thinks its still processing the command, can I?

No you can't. that's why you have to reset it.
Otherwise, the command descriptor you're going to free may be used by
something else, and the IOC may either read nonsense from it, or corrupt
existing data here.

> Can I instruct the IOC to stop processing this particular command?

AFAIK no.

-- 
Manuel Bouyer <bouyer%antioche.eu.org@localhost>
     NetBSD: 26 ans d'experience feront toujours la difference
--


Home | Main Index | Thread Index | Old Index