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 ¡úmit-ios.ph
1 → submit-ios
others → submit-ios.pl

The cqeSem function should be consistent with the semName function.

Signed-off-by: izxl007 <zeng.zheng@zte.com.cn>
This commit is contained in:
izxl007 2025-04-25 19:01:29 +08:00
parent 0033c5b0bb
commit 6408eecd1b

View File

@ -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<char> target(256);