generic/233,270: unlimit the max locked memory size for io_uring
authorZorro Lang <zlang@redhat.com>
Tue, 30 Mar 2021 00:59:42 +0000 (08:59 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 11 Apr 2021 08:05:35 +0000 (16:05 +0800)
commitd228f2147085f6ef3a10344d888352bade222316
tree45e4cb4983d42e0c87e9f68ad9dbd36965a05a1e
parent3188255e07593b372da500291a58d6a6c530647a
generic/233,270: unlimit the max locked memory size for io_uring

The ltp/fsstress always fails on io_uring_queue_init() by returnning
ENOMEM. Due to io_uring accounts memory it needs under the rlimit
memlocked option, which can be quite low on some setups, especially
on 64K pagesize machine. root isn't under this restriction, but
regular users are. So only g/233 and g/270 which use $qa_user to run
fsstress are failed.

To avoid this failure, set max locked memory to unlimited before
doing fsstress, then restore it after test done.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/233
tests/generic/270