----------------
Hmm, so I have discussed this with some folks, and it seems we do need
something like this as the kernel will not help us here.
However, I don't think the patch is acceptable: there are other reasons why EIO
might be returned. Since we cannot distuingish the error causes we need at
least a safe way out. My suggestion would be to retry opening 20 times and then
give up. In systemd I have settled to use 20 times with 50ms in between,
totalling to 1s in total.
Could you please update the patch? I'll then merge it.
-------------------
Upstream requests updating this patch:
----------------
Hmm, so I have discussed this with some folks, and it seems we do need
something like this as the kernel will not help us here.
However, I don't think the patch is acceptable: there are other reasons why EIO
might be returned. Since we cannot distuingish the error causes we need at
least a safe way out. My suggestion would be to retry opening 20 times and then
give up. In systemd I have settled to use 20 times with 50ms in between,
totalling to 1s in total.
Could you please update the patch? I'll then merge it.
-------------------