From e3127c764022620c38ecbffd671d83efac4a4362 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 prio and submit-ios* 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);