]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
blk/kernel: fix io_uring got (4) Interrupted system call 38901/head
authorYanhu Cao <gmayyyha@gmail.com>
Thu, 14 Jan 2021 14:55:24 +0000 (22:55 +0800)
committerYanhu Cao <gmayyyha@gmail.com>
Thu, 14 Jan 2021 14:55:24 +0000 (22:55 +0800)
Fixes: https://tracker.ceph.com/issues/48872
Signed-off-by: Yanhu Cao <gmayyyha@gmail.com>
src/blk/kernel/io_uring.cc

index 3eb7a2d831d756f13754b2c5c9188d76c2ea253f..17bd35bb4c02bccf28f42fe88620a55d6ce800aa 100644 (file)
@@ -195,7 +195,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)