]> www.infradead.org Git - users/hch/xfstests-dev.git/commit
fsstress: check io_uring_queue_init errno properly
authorZorro Lang <zlang@kernel.org>
Mon, 11 Mar 2024 16:20:27 +0000 (00:20 +0800)
committerZorro Lang <zlang@kernel.org>
Tue, 12 Mar 2024 03:39:52 +0000 (11:39 +0800)
commit46b783fe67fc2afd2bc30df458934d4916b91cce
tree4dcf1949597f9c70a0c24e5c50a9a3355cbeeba8
parent7bb78927c0f53f7b86f932836ef1d3b34606a3a9
fsstress: check io_uring_queue_init errno properly

As the manual of io_uring_queue_init says "io_uring_queue_init(3)
returns 0 on success and -errno on failure". We should check if the
return value is -ENOSYS, not the errno.

Fixes: d15b1721f284 ("ltp/fsstress: don't fail on io_uring ENOSYS")
Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
ltp/fsstress.c