]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
blk/kernel: fix io_uring got (4) Interrupted system call 39899/head
authorYanhu Cao <gmayyyha@gmail.com>
Thu, 14 Jan 2021 14:55:24 +0000 (22:55 +0800)
committersinguliere <singuliere@autistici.org>
Sun, 7 Mar 2021 09:24:18 +0000 (10:24 +0100)
Fixes: https://tracker.ceph.com/issues/48872
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
(cherry picked from commit f4ce8571b43010d95b8f0e23d2701c38ae29a3d1)

src/os/bluestore/io_uring.cc

index 54fa0f9535f3cc85d43d9e04d2806f33f5db1d77..be7219dc171ac2330ea71d134bc8c475d27b3913 100644 (file)
@@ -198,7 +198,7 @@ get_cqe:
 
   if (events == 0) {
     struct epoll_event ev;
-    int ret = epoll_wait(d->epoll_fd, &ev, 1, timeout_ms);
+    int ret = TEMP_FAILURE_RETRY(epoll_wait(d->epoll_fd, &ev, 1, timeout_ms));
     if (ret < 0)
       events = -errno;
     else if (ret > 0)