ltp/fsstress: don't fail on io_uring ENOSYS
authorEric Sandeen <sandeen@redhat.com>
Thu, 28 Jan 2021 21:31:40 +0000 (15:31 -0600)
committerEryu Guan <guaneryu@gmail.com>
Sun, 7 Feb 2021 14:41:58 +0000 (22:41 +0800)
commitd15b1721f2843de0471acf1e1929d947d5697adc
treee623ea1efe55b00fd50a47084efead3d5ada3e99
parent44a1fbf786a89146e1166b90c7c98b260eddaccb
ltp/fsstress: don't fail on io_uring ENOSYS

We might have URING #defined at build time, but be running on a kernel
which does not support it.

For that reason, we should not exit with an error if
io_uring_queue_init() fails with ENOSYS. We can just note the lack of
support and skip all future io_uring operations.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
ltp/fsstress.c