On Tue, Jul 12, 2022 at 12:40 AM Christian König
<christian.koenig@xxxxxxx> wrote:
Am 12.07.22 um 06:22 schrieb John Stultz:Yes! I'm not saying it's wrong to use absolute values, just that
After having to debug down through the kernel to figure outWell absolute timeout values are mandatory for making -ERESTARTSYS work
why my _WAIT calls were always timing out, I realized its
an absolute timeout value instead of the more common relative
timeouts.
This detail should be called out in the documentation, as while
the absolute value makes sense here, its not as common for timeout
values.
without any additional handling.
relative values are common enough to create some confusion here.
So using them is recommended for ~20 years now and IIRC even documentedSo in addition to "somewhere", why not in the interface documentation as well?
somewhere.
See here as well https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Flwn.net%2FArticles%2F17744%2F&data=05%7C01%7Cchristian.koenig%40amd.com%7C68a13ac3906d4ac4cc4308da641df25c%7C3dd8961fe4884e608e11a82d994e183d%7C0%7C0%7C637932377042931797%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=dM4BkqnO0LrsdKBwKKMvx4zMabWrM%2FY7pPGDsdFO%2BnI%3D&reserved=0 how much trouble systemYep. Well aware. :)
calls with relative timeouts are.
thanks
-john