summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2021-11-17man/io_uring_get_sqe.3: use "submission queue entry"Jens Axboe
Event isn't quite appropriate on the submission side. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-17liburing: add missing man pagesStefan Roesch
Add missing man pages for liburing functions. Signed-off-by: Stefan Roesch <shr@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-15Merge branch 'version' of https://github.com/bikallem/liburingJens Axboe
* 'version' of https://github.com/bikallem/liburing: src/Makefile: use VERSION variable consistently
2021-11-15src/Makefile: use VERSION variable consistentlyBikal Lem
src/Makefile defines incorrect 'liburing.so' version, i.e 2.1 as opposed to 2.2. This commit makes src/Makefile use correct version defined in liburing.spec. Along the way we refactor the use of common variables into Makefile.common and include it into both src/Makefile and Makefile. Signed-off-by: Bikal Lem <gbikal+git@gmail.com>
2021-11-12Merge branch 'fix-make-tests' of https://github.com/bikallem/liburingJens Axboe
* 'fix-make-tests' of https://github.com/bikallem/liburing: runtests: use env to find bash
2021-11-12runtests: use env to find bashBikal Lem
This commit fixes running 'make runtests' in OSes where '/bin/bash' is not defined. We use a more portable version, i.e. '/usr/bin/env bash' instead. Signed-off-by: Bikal Lem <gbikal+git@gmail.com>
2021-11-12Merge branch 'glibc-statx' of https://github.com/bikallem/liburingJens Axboe
* 'glibc-statx' of https://github.com/bikallem/liburing: fix 'make' when using glibc >= 2.28
2021-11-12fix 'make' when using glibc >= 2.28Bikal Lem
glibc >= 2.28 supports `statx` out of the box. This means we get an error when attempting to build `liburing` when glibc is >= 2.28, for e.g. in my glibc version 2.33 I get the following errors ``` :26:8: error: redefinition of ‘struct statx_timestamp’ 26 | struct statx_timestamp | ^~~~~~~~~~~~~~~ In file included from statx.c:14: ``` or ``` error: redefinition of ‘struct statx’ 30 | struct statx | ^~~~~ In file included from statx.c:14: ``` This commit fixes 'make' error by choosing to use the glibc version of `statx` if available. glibc 2.28 release notes: https://sourceware.org/git/?p=glibc.git;a=blob;f=NEWS;h=154ab22d7ca065af5233406927302bb7f6a66890;hb=3c03baca37fdcb52c3881e653ca392bba7a99c2b#l84 Signed-off-by: Bikal Lem <gbikal+git@gmail.com>
2021-11-12Add more explanations to the github PR templateJens Axboe
I don't care about what happens on github, the git tree is what is important in terms of commit messages. Add a section on splitting changes up. Each change should do just one thing. If it does more than one thing, most likely it should be in a separate commit. Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-12Merge branch 'unused-var-man' of https://github.com/yinan1048576/liburingJens Axboe
* 'unused-var-man' of https://github.com/yinan1048576/liburing: Remove unused variable in man page example
2021-11-09Remove unused variable in man page exampleYinan Zhang
Signed-off-by: Yinan Zhang <zyn8950@gmail.com>
2021-11-06test/io-cancel: -ECANCELED is a valid return valueJens Axboe
-EINTR relies on io-wq, we can also find and cancel before that. Make sure the test allows it, fixing the following case failure on newer kernels: 1 -125 child failed 1 test_cancel_req_across_fork() failed Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-11-05Merge branch 'pr1' of https://github.com/GalaxySnail/liburingJens Axboe
* 'pr1' of https://github.com/GalaxySnail/liburing: man/io_uring_setup.2: add missing `wq_fd` field
2021-11-05man/io_uring_setup.2: add missing `wq_fd` fieldGalaxySnail
Add missing `wq_fd` field for `struct io_uring_params`. Fixes: https://github.com/axboe/liburing/issues/473 Signed-off-by: Luchen Yang <ylc991@163.com>
2021-10-31test/Makefile: Refactor the MakefileAmmar Faizi
The Makefile for test is not efficient and reads bad. We have to specify the name for each test 2 times (filename and name without the ext) while we could have just elided the extension from the source filename. Let's make it simpler and easier to manage. Changes summary: - Clean up and reorder things. - Sort the `test_srcs` alphabetically. - Remove `test_objs` (it turned out unused). - Generate `test_targets` variable from `test_srcs` by simply removing the `.c` and `.cc` file extension. Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211030114858.320116-3-ammar.faizi@intel.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-31examples/Makefile: Fix missing clean upAmmar Faizi
Several things go wrong with this Makefile: 1) Using `test_srcs` to generate `test_objs`. 2) `test_objs` is an unused variable. So (1) is pointless. 3) `make clean` does not remove `ucontext-cp` binary. I assume (1) and (2) were blindly copied from the test Makefile. For 3, the `make clean` removes $(all_targets) and $(test_objs). But `ucontext-cp` only exists in $(all_targets) if we have `CONFIG_HAVE_UCONTEXT`. When the target goal is `clean`, we will not have any of `CONFIG_*` variables. Thus, `ucontext-cp` is not removed. Clean them up! Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211030114858.320116-2-ammar.faizi@intel.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-30Merge branch 'pr-template' of https://github.com/ammarfaizi2/liburingJens Axboe
* 'pr-template' of https://github.com/ammarfaizi2/liburing: .github: Create pull_request_template.md
2021-10-30.github: Create pull_request_template.mdAmmar Faizi
GitHub throws away the relevant information like having even a valid email address for the person asking to pull. Another common problem on GitHub, people don't do any of the simplest things that the kernel people expect from a commit message, like: - No "short one-line description in the first line". - No sane word-wrap of the long description. GitHub commit messages tend to be (if they have any description at all) one long unreadable line. - No sign-off and other tags that we require for commit message. Let's fix this by creating a pull request template that contains pull request guidelines for GitHub Pull Request. Link: https://github.com/axboe/liburing/pull/464#issuecomment-950950688 Signed-off-by: Ammar Faizi <ammarfaizi2@gmail.com>
2021-10-25Merge branch 'fix463' of https://github.com/tchaloupka/liburingJens Axboe
* 'fix463' of https://github.com/tchaloupka/liburing: Fix invalid opcode used in io_uring_unregister_iowq_aff
2021-10-24Fix invalid opcode used in io_uring_unregister_iowq_affTomáš Chaloupka
Just a trivial fix of used opcode IORING_REGISTER_IOWQ_AFF -> IORING_UNREGISTER_IOWQ_AFF. Signed-off-by: Tomáš Chaloupka <chalucha@gmail.com> Fixes: https://github.com/axboe/liburing/issues/463
2021-10-21Merge branch 'pr2' of https://github.com/romange/liburingJens Axboe
* 'pr2' of https://github.com/romange/liburing: Add io_uring_prep_readv2 and io_uring_prep_writev2 helpers
2021-10-21Add io_uring_prep_readv2 and io_uring_prep_writev2 helpersRoman Gershman
These correspond to preadv2 and pwritev2 calls and include flags argument missing in the original helpers. Signed-off-by: Roman Gershman <romange@gmail.com> Link: https://github.com/axboe/liburing/issues/461
2021-10-18Revert "examples/ucontext-cp.c: Do not use SIGSTKSZ"Jens Axboe
This reverts commit af31ce2cbfcaecc2a6f342532ede5e293a34f7f7. The commit is buggy and causes ucontext-cp to crash. Just revert it for now. Fixes: https://github.com/axboe/liburing/issues/459 Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-18test/timeout-overflow: Fix `-Werror=maybe-uninitialized`Ammar Faizi
Fix this: ``` In file included from timeout-overflow.c:12: timeout-overflow.c: In function ‘test_timeout_overflow’: ../src/include/liburing.h:406:9: error: ‘num’ may be used uninitialized in this function [-Werror=maybe-uninitialized] 406 | io_uring_prep_rw(IORING_OP_TIMEOUT, sqe, -1, ts, 1, count); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ timeout-overflow.c:104:26: note: ‘num’ was declared here 104 | unsigned num; | ^~~ ``` Fixes: a4b465536021ee9c4d6d450a9461ddfc116d08b1 ("Add test for overflow of timeout request's sequence") Cc: yangerkun <yangerkun@huawei.com> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/BULrcXMbevM-ammarfaizi2@gnuweeb.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-18test/timeout: Fix `-Werror=maybe-uninitialized`Ammar Faizi
Fix this: ``` timeout.c: In function ‘test_multi_timeout’: timeout.c:590:20: warning: ‘user_data’ may be used uninitialized in this function [-Wmaybe-uninitialized] 590 | if (cqe->user_data != user_data) { | ^ timeout.c:601:51: warning: ‘time’ may be used uninitialized in this function [-Wmaybe-uninitialized] 601 | if (exp < time / 2 || exp > (time * 3) / 2) { | ~~~~~~^~~~ ``` Fixes: 37136cb4423b27dac2fc663b6a0c513b6d7d7ad1 ("test/timeout: add multi timeout reqs test with different timeout") Cc: zhangyi (F) <yi.zhang@huawei.com> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/hgUsvvrR9xY-ammarfaizi2@gnuweeb.org Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-11Merge branch 'master' of https://github.com/Tindarid/liburingJens Axboe
* 'master' of https://github.com/Tindarid/liburing: setup.c: rewrite `__fls()`
2021-10-12setup.c: rewrite `__fls()`Nursan Valeyev
Rewrite handmade `__fls()`: use `__builtin_clz()`. Also add `inline` specifier. Signed-off-by: Nursan Valeyev <tindarid@gmail.com>
2021-10-11src/nolibc: Fix `malloc()` alignmentAmmar Faizi
Add `__attribute__((__aligned__))` to the `user_p` to guarantee pointer returned by the `malloc()` is properly aligned for user. This attribute asks the compiler to align a type to the maximum useful alignment for the target machine we are compiling for, which is often, but by no means always, 8 or 16 bytes [1]. Link: https://gcc.gnu.org/onlinedocs/gcc-11.2.0/gcc/Common-Variable-Attributes.html#Common-Variable-Attributes [1] Fixes: https://github.com/axboe/liburing/issues/454 Reported-by: Louvian Lyndal <louvianlyndal@gmail.com> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211011064927.444704-1-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-10Merge branch 'add-ci-nolibc-x86-64' of https://github.com/ammarfaizi2/liburingJens Axboe
* 'add-ci-nolibc-x86-64' of https://github.com/ammarfaizi2/liburing: .github/workflows/build.yml: Add nolibc build x86-64 for CI
2021-10-11.github/workflows/build.yml: Add nolibc build x86-64 for CIAmmar Faizi
Fixes: https://github.com/axboe/liburing/issues/443 Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id>
2021-10-10configure: Add `CONFIG_NOLIBC` variable and macroAmmar Faizi
It's for conditonal variable and macro to enable nolibc build. Also add `--nolibc` option to `configure` to enable it. Link: https://github.com/axboe/liburing/issues/443 Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211010135338.397115-4-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-10Add nolibc build supportAmmar Faizi
Create `src/nolibc.c` to provide libc functions like `memset()`, `malloc()` and `free()`. Only build this file when we build liburing without libc. Add `get_page_size()` function to get the page size. When we build with libc, it uses `sysconf(_SC_PAGESIZE)`, otherwise it uses arch dependent implementation function that we provide at `src/arch` dir. Add conditional preprocessor in `src/syscall.h` to use arch dependent syscalls written in Assembly when we build liburing without libc. Extra notes for tests: 1) Functions in `src/syscall.c` require libc to work. 2) Tests require functions in `src/syscall.c`. So we build `src/syscall.c` manually from the test's Makefile. The Makefile in `src/` dir still builds `src/syscall.c` when we build liburing with libc. Link: https://github.com/axboe/liburing/issues/443 Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211010135338.397115-3-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-10Add arch dependent directory and filesAmmar Faizi
Create a new directory `src/arch` to save arch dependent sources. Add support start from x86-64, add syscalls crafted in Assembly code and lib (currently the lib only contains get page size function). Link: https://github.com/axboe/liburing/issues/443 Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211010135338.397115-2-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-10test/thread-exit: Fix use after free bugAmmar Faizi
When I add support for nolibc x86-64, I find this test failed. Long story short, we provide our own `free()` that always unmaps the VM with `munmap()`. It makes the CQE return -EFAULT because the kernel reads unmapped user memory from the pending `write()` SQE. I believe this test can run properly with libc build because `free()` from libc doesn't always unmap the memory, instead it uses free list on the userspace and the freed heap may still be userspace addressable. Fix this by deferring the free. Cc: Jens Axboe <axboe@kernel.dk> Fixes: 2edfa3f84bcc44612b7a04caf1f048f5406fcc7a ("Add test case for thread exiting with pending IO") Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211010063906.341014-2-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-07test/cq-size: Don't use `errno` to check liburing's functionsAmmar Faizi
When we build liburing without libc, we can't check `errno` variable with respect to liburing's functions. Don't do that it in test. Note: The tests themselves can still use `errno` to check error from functions that come from the libc, but not liburing. Link: https://github.com/axboe/liburing/issues/443 Fixes: https://github.com/axboe/liburing/issues/449 Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-07test/{iopoll,read-write}: Use `io_uring_free_probe()` instead of `free()`Ammar Faizi
`io_uring_free_probe()` should really be used to free the return value of `io_uring_get_probe_ring()`. As we may not always allocate it with `malloc()`. For example, to support no libc build [1]. Link: https://github.com/axboe/liburing/issues/443 [1] Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-06configure: add openat2.h for open_how and RESOLVE_* flagsJens Axboe
struct open_how and friends reside in the openat2.h header, so include that for the test case. Fixes: https://github.com/axboe/liburing/issues/360 Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-05Fix typo "timout" -> "timeout"Ammar Faizi
Cc: Jens Axboe <axboe@kernel.dk> Cc: Olivier Langlois <olivier@trillion01.com> Fixes: a060c8e55a6116342a16b5b6ac0c4afed17c1cd7 ("liburing: Add io_uring_submit_and_wait_timeout function in API") Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-04liburing: Add io_uring_submit_and_wait_timeout function in APIOlivier Langlois
Before commit 0ea4ccd1c0e4 ("src/queue: don't flush SQ ring for new wait interface"), io_uring_wait_cqes() was serving the purpose of submit sqe and wait for cqe up to a certain timeout value. Since the commit, a new function is needed to fill this gap. Fixes: https://github.com/axboe/liburing/issues/440 Signed-off-by: Olivier Langlois <olivier@trillion01.com> Link: https://lore.kernel.org/r/1bbde6755535cb7b0bdfc0846254e7c06faf04e0.1633366467.git.olivier@trillion01.com [axboe: minor style and commit message fixup] Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03src/syscall: Add `close` syscall wrapperAmmar Faizi
In commit 0c210dbae26a80ee82dbc7430828ab6fd7012548 ("Wrap all syscalls in a kernel style return value"), we forgot to add a syscall wrapper for `close()`. Add it. Fixes: cccf0fa1762aac3f14323fbfc5cef2c99a03efe4 ("Wrap all syscalls in a kernel style return value") Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211004013510.428077-1-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03Wrap all syscalls in a kernel style return valueAmmar Faizi
Add new syscall wrapper functions: 1) `uring_mmap` 2) `uring_munmap` 3) `uring_madvise` 4) `uring_getrlimit` 5) `uring_setrlimit` All of them are `static inline`. Use them to wrap the syscalls in a kernel style return value. The main purpose of this change is to make it possible to remove the dependency of `errno` variable in liburing C sources, so that later we can support build without libc. Extra new helpers: 1) `ERR_PTR()` 2) `PTR_ERR()` 3) `IS_ERR()` These helpers are used to deal with syscalls that return a pointer. Currently only `uring_mmap()` that depends on these. Link: https://github.com/axboe/liburing/issues/443#issuecomment-927873932 Cc: Bedirhan KURT <windowz414@gnuweeb.org> Suggested-by: Louvian Lyndal <louvianlyndal@gmail.com> Reviewed-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211003153428.369258-4-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03src/{queue,register,setup}: Don't use `__sys_io_uring*`Ammar Faizi
Don't use `__sys_io_uring*` for liburing internal. These functions are now supposed for user backward compatibility. For now, we use `____sys_io_uring*` (4 underscores). These are `static inline` functions that wrap the `errno` variable in a kernel style return value (directly returns negative error code when errors). The main purpose of this change is to make it possible to remove the `errno` variable dependency from liburing C sources, so that later we will be able to build liburing without libc which doesn't use `errno` variable at all. Cc: Bedirhan KURT <windowz414@gnuweeb.org> Cc: Louvian Lyndal <louvianlyndal@gmail.com> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211003153428.369258-3-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03src/syscall: Wrap `errno` for `__sys_io_uring_{register,setup,enter{2,}}`Ammar Faizi
Make it possible to remove the dependency of `errno` variable (which comes from libc). Currently, we expose these functions to userland: 1) `__sys_io_uring_register` 2) `__sys_io_uring_setup` 3) `__sys_io_uring_enter2` 4) `__sys_io_uring_enter` The tests in `test/io_uring_{enter,register,setup}.c` are the examples of it. Since the userland needs to check the `errno` value to use them properly, this means those functions always depend on libc. So we cannot change their behavior. Don't touch them all, this ensures the changes only affect liburing internal and no visible functionality changes for the users. Then we introduce new functions with the same name (with extra underscore as prefix, 4 underscores): 1) `____sys_io_uring_register` 2) `____sys_io_uring_setup` 3) `____sys_io_uring_enter2` 4) `____sys_io_uring_enter` These functions do not use `errno` variable *on the caller*, they use the kernel style return value (return a negative value of error code when errors). These functions are defined as `static inline` in `src/syscall.h`. They are just a wrapper to make sure liburing internal sources do not touch `errno` variable from C files directly. We need to make C files not to touch the `errno` variable to support build without libc. Link: https://github.com/axboe/liburing/issues/443#issuecomment-927873932 Cc: Bedirhan KURT <windowz414@gnuweeb.org> Suggested-by: Louvian Lyndal <louvianlyndal@gmail.com> Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211003153428.369258-2-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03io_uring: fix SQPOLL timeout-new testPavel Begunkov
Happens pretty rarely, but there were cases when CQE waitinig in test_return_before_timeout() time outs before the SQPOLL thread kicks in and executes submitted requests, give SQPOLL a little bit more time. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/5faf8ade7e161931d76a47b809650e68a1b361ba.1633259449.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03io_uring: test IORING_TIMEOUT_ETIME_SUCCESSPavel Begunkov
Make sure we don't fail links on ETIME when IORING_TIMEOUT_ETIME_SUCCESS is set. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/d1a5b6bdbcfa1ec6b5ca014248e12b3b1edb4e5d.1633259449.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-10-03test/probe: Use `io_uring_free_probe()` instead of `free()`Ammar Faizi
`io_uring_free_probe()` should really be used to free the return value of `io_uring_get_probe_ring()`. As we may not always allocate it with `malloc()`. For example, to support no libc build [1]. Link: https://github.com/axboe/liburing/issues/443 [1] Signed-off-by: Ammar Faizi <ammar.faizi@students.amikom.ac.id> Link: https://lore.kernel.org/r/20211003010608.58380-1-ammar.faizi@students.amikom.ac.id Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-09-27test: Fix endianess issue on `bind()` and `connect()`Ammar Faizi
When we call `bind()` or `connect()`, the `addr` and `port` should be in big endian value representation. Portability notes: - Do not hard code the address with integer like this `0x0100007fU`. Instead, use `inet_addr("127.0.0.1")` to ensure portability for the machine with different endianess. It's also cleaner and more readable to use `inet_addr()` from `#include <arpa/inet.h>`. - Use `htons(port_number)` to make sure the port_number is properly choosen instead directly assign it with integer (still about endianess problem). This commit fixes endianess issue in these files: test/232c93d07b74-test.c test/accept-link.c test/accept.c test/poll-link.c test/shutdown.c test/socket-rw-eagain.c test/socket-rw.c Fixes: 08bd815170ab4352d71019f4d3e532cd3f6f0489 ("Un-DOSify test/232c93d07b74-test.c") Fixes: 4bce856d43ab1f9a64477aa5a8f9f02f53e64b74 ("Improve reliability of poll/accept-link tests") Fixes: 76e3b7921fee98a5627cd270628b6a5160d3857d ("Add nonblock empty socket read test") Fixes: 7de625356997dea66826007676224285d407a0fe ("test/accept: code reuse cleanup") Fixes: 8a3a8d744db428a326e2f54093665411734fa3a8 ("Add IORING_OP_SHUTDOWN test case") Fixes: e3adbfc235da96ac97a9cafac78292a22eb12036 ("Moves function calls out of assert().") Suggested-by: Louvian Lyndal <louvianlyndal@gmail.com> Signed-off-by: Ammar Faizi <ammarfaizi2@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
2021-09-26Merge branch 'master' of https://github.com/CarterLi/liburingJens Axboe
* 'master' of https://github.com/CarterLi/liburing: liburing.h: add io_uring_prep_close_direct
2021-09-26liburing.h: add io_uring_prep_close_direct李通洲
Signed-off-by: 李通洲 <carter.li@eoitek.com>
2021-09-24man/io_uring_enter.2: add direct close descriptionJens Axboe
Signed-off-by: Jens Axboe <axboe@kernel.dk>