From 4616dd70799859f2686c92780bb469cd74fcf0e3 Mon Sep 17 00:00:00 2001 From: izxl007 Date: Fri, 25 Apr 2025 19:01:29 +0800 Subject: [PATCH] UsrbIo.cc: Fix the mismatch between priority and submit-ios* in cqeSem function MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In the semName function, the correspondence between prio and submit-ios* is as follows: 0 → submit-ios.ph 1 → submit-ios others → submit-ios.pl The cqeSem function should be consistent with the semName function. Signed-off-by: izxl007 --- src/lib/api/UsrbIo.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/api/UsrbIo.cc b/src/lib/api/UsrbIo.cc index c435568..2d9b855 100644 --- a/src/lib/api/UsrbIo.cc +++ b/src/lib/api/UsrbIo.cc @@ -330,8 +330,8 @@ struct Hf3fsIorHandle { static int cqeSem(sem_t *&sem, const char *hf3fs_mount_point, int prio) { auto link = fmt::format("{}/3fs-virt/iovs/submit-ios{}", std::string(hf3fs_mount_point), - prio == 0 ? "" - : prio < 0 ? ".ph" + prio == 1 ? "" + : prio == 0 ? ".ph" : ".pl"); std::vector target(256);