Le ven. 3 mai 2019 à 12:42, Karel Zak <kzak@xxxxxxxxxx> a écrit : > > On Fri, May 03, 2019 at 10:28:19AM +0200, Romain Izard wrote: > > + do { > > + err = ioctl(dev_fd, LOOP_SET_STATUS64, &lc->info); > > + } while (err && errno == EAGAIN); > > Would be better to use any delay in the loop? For example after > EAGAIN read/write we use usleep(250000). As we are waiting for the kernel to do some cleanup, this is a good idea. It seems to reduce the need for retries in my use case. I will add this in a v2. Best regards, -- Romain Izard