From 3aabbdcd35752a7f3e858f696709fb58d5135d1a Mon Sep 17 00:00:00 2001 From: Yanhu Cao Date: Thu, 14 Jan 2021 22:55:24 +0800 Subject: [PATCH] blk/kernel: fix io_uring got (4) Interrupted system call Fixes: https://tracker.ceph.com/issues/48872 Signed-off-by: Yanhu Cao (cherry picked from commit f4ce8571b43010d95b8f0e23d2701c38ae29a3d1) --- src/os/bluestore/io_uring.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/os/bluestore/io_uring.cc b/src/os/bluestore/io_uring.cc index 54fa0f9535f3c..be7219dc171ac 100644 --- a/src/os/bluestore/io_uring.cc +++ b/src/os/bluestore/io_uring.cc @@ -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) -- 2.47.3