summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2020-02-25Update versions to 0.5liburing-0.5v0.5Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-25test/link: fix typoJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-25test/sq-poll-kthread: include grace period before thread checkJens Axboe
Files can be put async, which means that it may very well be that the thread is alive the instant after io_uring_queue_exit() has returned. Add a 1 second grace period before checking, hopefully that's enough to remove false positives from this test. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-25Reinstate io_uring_unregister_eventfd()Jens Axboe
When the probe registration was added, this got inadvertently deleted. Oops... Fixes: ec0ce0168742 ("Add io_uring_register_probe()") Fixes: https://github.com/axboe/liburing/issues/86 Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-25configure: sync struct open_how with kernel APIJens Axboe
This got changed and I missed it, now corrected... Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-21test: add sq-poll-kthread test caseliburing-0.4Stefano Garzarella
sq-poll-kthread tests if the 'io_uring-sq' kthread is stopped when the userspace process ended with or without closing the io_uring fd. Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-20configure: fix mis-generation of compat.h for no __kernel_rwf_tJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-20Merge branch 'dev' of https://github.com/CarterLi/liburingJens Axboe
* 'dev' of https://github.com/CarterLi/liburing: liburing.h: add const type qualifier for io_uring_prep_write
2020-02-20man/io_uring_setup.2: fix 'sq_thread_idle' descriptionStefano Garzarella
In the kernel we are using msecs_to_jiffies() to convert the 'sq_thread_idle' parameter, provided by the user, in jiffies. So, the value is interpreted in milliseconds and not microseconds. Fixes: 59bb09c553eb ("man: add io_uring_setup.2 man page") Signed-off-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-20liburing.h: add const type qualifierCarter Li
for io_uring_prep_write Signed-off-by: Carter Li <carter.li@eoitek.com>
2020-02-19Merge branch 'dev' of https://github.com/CarterLi/liburingJens Axboe
* 'dev' of https://github.com/CarterLi/liburing: man/io_uring_enter.2: correct IORING_OP_STATX
2020-02-19man/io_uring_enter.2: correct IORING_OP_STATXCarter Li
Signed-off-by: Carter Li <carter.li@eoitek.com>
2020-02-14Merge branch 'pu/test-suite' of https://github.com/guillemj/liburingJens Axboe
* 'pu/test-suite' of https://github.com/guillemj/liburing: test: Initialize the data struct to set stop member to 0 test: Distinguish failure messages for accept-link test: Expect fail values from io_uring calls to be -errno instead of -1 test: Handle NULL sqe and cqe in tests test: Unify queue init failed error message test: Cleanup file artifacts on early exits test: Skip tests where the kernel lacks support Add src/include/liburing/compat.h to .gitignore
2020-02-14test: Initialize the data struct to set stop member to 0Guillem Jover
The send_thread() will do an early return if the stop member is true, which can happen in case we do not initialize the memory. Otherwise we will then get a failure with -EALREADY instead of the expected -ECANCELED. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14test: Distinguish failure messages for accept-linkGuillem Jover
We are testing two modes, one with accept, the other with accept and connect, and having the same error message makes it harder to see what went wrong where. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14test: Expect fail values from io_uring calls to be -errno instead of -1Guillem Jover
On error these functions return -errno instead of -1, otherwise we will not catch these and the tests will segfault. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14test: Handle NULL sqe and cqe in testsGuillem Jover
We need to check the return values from io_uring_queue_init() and recv_prep() or we will be passing a NULL sqe to io_uring_get_sqe(), or a NULL cge to io_uring_wait_cqe(). Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14test: Unify queue init failed error messageGuillem Jover
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14test: Cleanup file artifacts on early exitsGuillem Jover
We should either unlink(2) the files after the first open in case we do not need them anymore, or when doing an early exit(2) to skip a test or from an error. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14test: Skip tests where the kernel lacks supportGuillem Jover
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-14Add src/include/liburing/compat.h to .gitignoreGuillem Jover
Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-13test/poll-cancel-ton: reap events after submitJens Axboe
If the polls complete, then we can have events immediately. Ensure we nowait reap to prevent overflows. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-12man/io_uring_register.2: add note of ring quiesce for file/buffers registrationJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-12Auto-generate compat.hJens Axboe
The previous fix for __kernel_timespec only works within the liburing repo, as that's the only place we have the defines we need. Instead of relying on that, auto-generate compat.h so it suits the given build environment. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-12Correctly handle if __kernel_timespec is definedJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-11Add SPDX license identifiersJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-11liburing.spec: use brick.kernel.dk and add the signatureJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-11io_uring.h: make GPL-2.0 OR MITJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-11Merge branch 'pu/version-script' of https://github.com/guillemj/liburingJens Axboe
* 'pu/version-script' of https://github.com/guillemj/liburing: liburing.map: Fix LIBURING_0.3 shared library version node
2020-02-12liburing.map: Fix LIBURING_0.3 shared library version nodeGuillem Jover
This version node is disconnected from LIBURING_0.2, and contains a merged duplication of the LIBURING_0.1 and LIBURING_0.2 version nodes, plus few local entries. Remove its contents and link it to the LIBURING_0.2, as it will inherit everything there in addition to the catchall local in LIBURING_0.1. This leaves an empty version node around, and while it is a bit of an oddity and it might be somewhat safe to remove, it could still break users. So we leave it behind as a representation of what went on in that release. Signed-off-by: Guillem Jover <guillem@hadrons.org>
2020-02-11man/io_uring_setup.2: document IORING_FEAT_CUR_PERSONALITYJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-07Fix liburing.so symlink source if libdir != libdevdirStefan Metzmacher
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-07Add relative path testingJens Axboe
This adds AT_FDCWD test cases for openat2 and open-close. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06io_uring_sq_ready: check shared head for SQPOLL ringJens Axboe
If the ring is using SQPOLL, then the kernel side is updating the ring head without us knowing. Ensure we load it and don't use the local cache. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06liburing.spec move to liburing-0.4Stefan Metzmacher
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06debian: package liburing-0.4 and use a layout as the libaio packageStefan Metzmacher
Hopefully this makes is easier to be picked up by the debian and ubuntu distributions. Cc: Liu Changcheng <changcheng.liu@aliyun.com> Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06configure/Makefile: introduce libdevdir defaults to $(libdir)Stefan Metzmacher
This makes it possible to install runtime libraries to /lib/* and developement libraries to /usr/lib/* Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06test/poll-v-poll: add variant that uses io_uring for epoll_ctl()Jens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06Add io_uring_prep_epoll_ctl() helperJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-06io_uring_cqe_get_data() only requires a const struct io_uring_cqe *cqeStefan Metzmacher
Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-03Add test/eventfd-ring to .gitignoreJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-02Merge branch 'across-fork-test' of https://github.com/anarazel/liburingJens Axboe
* 'across-fork-test' of https://github.com/anarazel/liburing: Add test for sharing uring across fork Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-02Add circular eventfd test caseJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-02test/eventfd: skip on earlier kernelsJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-02Merge branch 'typo-fixes' of https://github.com/anarazel/liburingJens Axboe
* 'typo-fixes' of https://github.com/anarazel/liburing: man: typo fixes
2020-02-02man: typo fixesAndres Freund
2020-02-02Add test for sharing uring across forkAndres Freund
Signed-off-by: Andres Freund <andres@anarazel.de>
2020-02-01man/io_uring_enter.2: clarify how/when IOSQE_IO_LINK are terminatedJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-01test/read-write: skip eventfd read if we know we don't have READJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2020-02-01Merge branch 'eventfd_test' of https://github.com/cor3ntin/liburingJens Axboe
* 'eventfd_test' of https://github.com/cor3ntin/liburing: Add a test for reading from eventfd