RE: [PATCH] Time out for possible dead loops during queuedinvalidation wait

From: Yu, Fenghua
Date: Wed May 27 2009 - 19:26:02 EST

>> Which error code is better? Is EAGAIN ok?
>That depends on driver details - probably EIO would be suitable, dunno.
>But all the callers of qi_submit_sync() seem to just drop the error
>code on the floor:
> /* should never fail */
> qi_submit_sync(&desc, iommu);
>and may well cause a kernel crash as a result.

Should the code go to kernel panic after timeout in qi_submit_sync() loops? When timeout (10 seconds) in the loops, something in hardware could be wrong.


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at