io_uring: don't convert to jiffies for waiting on timeouts
If an application calls io_uring_enter(2) with a timespec passed in, convert that timespec to ktime_t rather than jiffies. The latter does not provide the granularity the application may expect, and may in fact provided different granularity on different systems, depending on what the HZ value is configured at. Turn the timespec into an absolute ktime_t, and use that with schedule_hrtimeout() instead. Link: https://github.com/axboe/liburing/issues/531 Cc: stable@vger.kernel.org Reported-by:Bob Chen <chenbo.chen@alibaba-inc.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
-
mentioned in commit 928a9e5c
-
mentioned in commit f632f774
-
mentioned in commit 6842e298
-
mentioned in commit a6bad52c
-
mentioned in commit e32bba5a
-
mentioned in commit 2e088c39
-
mentioned in commit c4f67f3d
-
mentioned in commit 5a856b58
-
mentioned in commit f3d530fe
-
mentioned in commit 7a8dd2f2
-
mentioned in commit fee5372a
-
mentioned in commit 23ba6322
-
mentioned in commit 37a72833
-
mentioned in commit 855adfde
-
mentioned in commit 03e0842f
-
mentioned in commit cbd06de7
-
mentioned in commit d40ab2b4
-
mentioned in commit 05ce9eb9
-
mentioned in commit d94724b2
-
mentioned in commit bf77ad11
-
mentioned in commit b466f66f
-
mentioned in commit 6e66ac24
-
mentioned in commit 42af7573
-
mentioned in commit 5af453ff
-
mentioned in commit b026bb16
Please sign in to comment