-
Notifications
You must be signed in to change notification settings - Fork 19
Update to liburing 2.1 #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41a61c97 liburing 2.1 a357750b Ignore spurious fadvise/madvise failures aefd23d0 Revert "test/empty-eownerdead: Only expect EOWNERDEAD as test success" eaf51d51 test/runtests.sh: align at 55 wide 5b0edaba Merge branch 'pu/test-suite-shellcheck' of https://github.com/guillemj/liburing 6955c95c test: Disable shellcheck checks 27b9e561 test: Declare and assign shell variable separately to not mask return value cc5aea4a test: Do not use $ in variables within $(()) 35b79402 test: Add missing quotes around variables 148642c3 test: Pass an array to run_tests instead of an undefined variable 0d14fcb2 test: Use an array instead of interpolating into a string via $@ 974cd681 test: Use -z instead of ! -n 18aed291 test: Use -n instead of ! -z c8f7742f Merge branch 'pu/test-suite-fixes' of https://github.com/guillemj/liburing 6e72065e test/empty-eownerdead: Only expect EOWNERDEAD as test success f7cb8895 test/io_uring_register: Expect ENOMEM or EFAULT from __sys_io_uring_register 6f5eaddb test/timeout-new: Explicitly note that we are skipping the test 7200a966 test: Print timed out tests also on failure 6c529eab test: Fix runner output to avoid concatenated strings 32534655 test: Namespace core files with the test name 47096ad6 test: Fix build failure with gcc -O0 1b11c071 test: add basic time measurement 187a39d3 test/runtests.sh: remove old manager/worker checks 6d427fea Merge branch 'uman/gnu-source-def' of https://github.com/mslmdev/liburing 43b7ec8d build: add -D_GNU_SOURCE to all CPPFLAGS/CFLAGS. e1c29bbf Merge branch 'man-page-fixes' of https://github.com/ammarfaizi2/liburing 4c598792 man: clean up spelling bb75e12e man/io_uring_enter.2: add notes about direct open/accept 5497c50a io_uring.h: sync with 5.15 kernel 168d5a4e Fix IORING_REGISTER_IOWQ_MAX_WORKERS name a467e094 man: document new register/update API 1dba431f test/submit-link-fail: fix unchecked write(2) return f8bcd034 tests: test early-submit link fails c63e4f2f tests: use helpers for direct open/accept 3e81df1d liburing: add helpers for direct open/accept 1f4d3a15 liburing.h: correct max_worker name 21916ba3 Change IORING_REGISTER_IOWQ_MAX_UNBOUND_WORKERS fb1a8c1b src/syscall.h: get rid of useless externs 1dbc9974 man/io_uring_enter.2: document IORING_ENTER_EXT_ARG 099d06e6 Add io_uring_register_iowq_max_unbound() helper a7dd951d Get rid of useless 'extern' on function declarations in liburing.h d0e727fd Add (UN)REGISTER_IOWQ_AFF helpers 340e5b9b man/io_uring_register.2: note when MAX_UNBOUND became available 02e9104c man/io_uring_register.2: add missing punctuation 26c77d89 man/io_uring_register.2: document IORING_REGISTER_IOWQ_MAX_UNBOUND ed972e95 man/io_uring_enter.2: add IORING_OP_TIMEOUT clock sources aa70ec6c man/io_uring_enter.2: improve timeout entry c5debc35 man/io_uring_enter.2: update SQE eecd4462 man/io_uring_enter.2: note that not all requests support fixed files 4e335a52 man/io_uring_enter.2: add new 5.15 opcodes b96ad722 man/io_uring_enter.2: note that cqe->flags is indeed used 529821a8 man/io_uring_enter.2: add poll update and multishot mode 09f9c79d man/io_uring_register.2: add IORING_(UN)REGISTER_IOWQ 40477e3b man: update notes on register quiesce 311f02b3 man: fix io_uring_sqe alignment e65cbc32 register: add tagging and buf update helpers 6f86e447 tests: file create/unlink cleanup 046c0ebf Merge branch 'fix-random-eacces' of https://github.com/ammarfaizi2/liburing 42c7cea5 test/connect: fix random EACCES for non-root test 0fe4657b test/35fa71a030ca-test.c: limit runtime to 5 seconds 1584f9a6 liburing.h: make header clean for implicit sign and size conversions 19173141 configure: document --cc and --cxx options ea3ca3be io_uring: update buffer update feature testing 2e8854eb test/{accept,openat2}: use sqe->file_index d74b028b tests: test open/accept directly into fixed table b3dc872f tests: skip when large buf register fails 5b45e4b4 tests: don't skip sqpoll needlessly 0837dadf liburing.h: dedup poll mask conversion c1c8b893 liburing.h: add a multipoll helper 48792358 Update io_uring.h d9fe6161 tests: fix poll-mshot-update 30f49fb0 tests: non-privileged io_uring_enter ed1632ed tests: non-privileged defer test 608598ff tests: non-root io_uring_register 526f270b tests: rw: don't exit ring when init failed f632c107 tests: add IOSQE_ASYNC cancel testing a395fbb3 tests; skip non-root sendmsg_fs_cve e430dd21 tests: migrate rw tests to t_create_ring() 135f32ab tests: fix test_cancel_req_across_fork d61a6278 Merge branch 'e2k' of https://github.com/pechenkin/liburing 7d86ce8e Merge branch 'patch-1' of https://github.com/markpapadakis/liburing b5f2347b examples: disable ucontext-cp for elbrus (e2k) architecture 62a5004f Update io_uring_setup.2 ed5d3b23 tests: rename iopoll test variables 59e7bf13 tests: create new files for rw testing fa15080b tests: fail early invalid linked setups 5693e212 tests: close pipes in link-timeout b936762b test/hardlink: ignore run if argument given c9644872 test/symlink: ignore run if agument given c776ee94 test/mkdir: ignore run if argument given 82bbab58 Add test case for empty submit/wait SQPOLL EOWNERDEAD failure case 11db8b30 man/io_uring_setup.2: document the two most recent FEAT flags a13a8426 test/runtests.sh: report what tests timed out a182c26d man/io_uring_setup.2: make sure FEAT flags are kernel versioned 8e902608 Merge branch 'master' of https://github.com/yangbonis/liburing c75b1c04 correct syscall NR in mips e98b9745 Fix 32-bit compile warnings 83645b2d liburing.h: make all file/IO offset __u64 9d9d96ea Merge branch 'ammarfaizi2-liburing-dev' of https://github.com/ammarfaizi2/liburing f0230dc3 test/file-update: clean up t_malloc() before return 1a3cb95f test/fsync: clean up t_malloc() before return 5864c926 .gitignore: add several untracked test files 0ea4ccd1 src/queue: don't flush SQ ring for new wait interface d6eec536 test/timeout: newer kernel require separate submit 72a94398 test/sqpoll-cancel-hang.c: fix test crash c1176b78 test/Makefile: silence string/array overflow for tests 640f1461 Merge branch 'fork/sqpoll-hang' of https://github.com/oswalpalash/liburing 5070344b Merge branch 'master' of https://github.com/ammarfaizi2/liburing 7758ae5e Merge branch 'master' of https://github.com/seunghunee/liburing 4c23254c man/io_uring_enter.2: further clarify what cqe->res holds 860c3556 Merge branch 'patch-1' of https://github.com/MiKom/liburing a6afed8d Clarify information about error results 67fcc9c9 test/io_uring_enter.c: set to_submit to 0 f19bb01a tests: fix poll update compatibility check ce4acc01 Merge branch 'doc-accept-flags' of https://github.com/Thomasdezeeuw/liburing 054a908d Refer to the accept_flags in io_uring_enter manual f3dcc5c3 Merge branch 'master' of https://github.com/anson-lo/liburing ec6f75a6 Fix a bug due to the unreleased lock before function returns e3ad4f33 Merge branch 'fix-link-for-deb' of https://github.com/foxmox/liburing a3d0f34d debian/rules: add missing slash for relativelibdir 5c91cd3e test/send_recvmsg: drop mutex on thread creation failure 23dd1aef test/send_recv: drop mutex on thread creation failure 11f6d563 man/io_uring_enter.2: clarify io_uring_enter(2) SQPOLL return value 603111a5 Revert "Add mknod test case" 0b14449e Revert "liburing.h: add mknodat prep helper" 839c5d8e Revert "io_uring.h: add mknodat opcode" f652f3c9 Add mknod test case e3d522a4 liburing.h: add mknodat prep helper a36f3e8b io_uring.h: add mknodat opcode d2613de1 Add linkat test case ce293fa0 liburing.h: add linkat prep helper 38b51da2 io_uring.h: add linkat opcode 9b425985 Add symlinkat test case dc99fb1c liburing.h: add symlinkat prep helper 27845565 io_uring.h: add symlinkat opcode 8cea3e8d Add mkdirat test case cdc627df liburing.h: add mkdirat prep helper 16949310 update rsrc register/update ABI and tests c4c280f3 queue: clean up SQ flushing 9c43f134 test/file-register: fix heap overflow read on test_basic ee551425 tests: update reg-buf limits testing 9ef0e540 tests: test shmem buffer registration f4590daa io_uring_enter(2): Clarify how to read from and write to non-seekable files 0e476bd0 clarify an edge case of IORING_SETUP_SQ_AFF 9e9aabe2 io_uring_enter(2): clarify OP_READ and OP_WRITE acb906fc add test for sqpoll cancel hang 0cbce58b Merge branch 'master' of https://github.com/romange/liburing e3db1046 Fix test_connect_timeout test 171a9c37 tests: remove test_link_fail_ordering() a9d8a77d tests: fix minor connect flaws 0786c512 tests: fix timeout-new for old kernels 2e3c780a tests: add rsrc tags tests 674d092f sync io_uring.h API file with Linux 5.13 e9e587b1 Merge branch 'master' of https://github.com/le-migou/liburing a5d51c20 man: Fix typo in man io_uring_queue_exit 7ff4feed test: test ring exit cancels SQPOLL's iowq cac93c53 add tests for drain io with multishot reqs ba57d216 tests: remove -EBUSY on CQE backlog tests 361d20cd Merge branch 'trivial_strerror_fix' of https://github.com/ddiss/liburing b1ad8c03 examples/link-cp: fix a couple of strerror negations 7778ffcf tests/poll: poll update as a part of poll remove c0ea1461 Merge branch 'mlock-size' 4d845801 src/setup: don't treat dummy ring init as failure 94dfaf2c src/setup: add some documentation to the memlock helpers 8aac320a examples/ucontext-cp.c: cope with variable SIGSTKSZ ea0fd51b setup: provide helpers to inquire about necessary mlock sizes d3eb6af4 test/poll-mshot-update: test live updates of triggering requests b75baa4f tests: test CQE ordering on early submission fail a209abe6 test/rw_merge_test: code cleanups f76afee7 Merge branch 'io_merge_testcase' of https://github.com/dmonakhov/liburing 808b6c72 test: get rid of x86_64'isms in the test code efa9efea test/ring-leak: get rid of warning on unchecked read 2118351e test/pipe-reuse: ignore short read a36a801c test/connect: randomize connect port 8bfdf56c test/socket-rw*: don't fatally error on failure to bind 13002f78 tests: more cancellation tests 941a5c7c examples/io_uring-cp: wait for pending writes before exit copy loop d731f678 add test case for 5.4 io merge regression logic 2b89fce1 tests: test that ring exit cancels io-wq 14d63ea2 tests: add more IORING_OP_ASYNC_CANCEL tests a9f23f08 spec: add explicit build dependency on make 1815337f spec: bump version to 2.0 35c199c4 man/io_uring_enter.2: note that -EBUSY can also happen for getevents b013dfd5 Sync io_uring.h API file with Linux 5.12 6aa9b364 Add test case for exiting with SQPOLL and rings created disabled 965bae44 Merge branch 'test-io-after-child-exit' of https://github.com/anarazel/liburing 3512f9af test: use ring creation helpers where appropriate 382bec7e test/helpers: add ring creation helpers d84d9010 helpers: prefix any helper with t_ instead of io_uring_ b375a332 tests: add test for using ring after a forked child exits. b6dfe23e test/helpers: remove extra whitespace d34580f4 Merge branch 'add-memalign-helper' of https://github.com/ZhiqiangLiu26/liburing f00657f8 test/Makefile: ensure dependencies and build of helpers.[ch] is sane b6e4a0ab helpers: add io_uring_create_buffers() helper fa7ba190 helpers: add io_uring_create_file() helper b7b089a6 helpers: add io_uring_calloc helper dbc834a9 Merge branch 'add-memalign-helper' of https://github.com/ZhiqiangLiu26/liburing 93bec4c6 helpers: add io_uring_posix_memalign helper cdd38178 Merge branch 'fix-check-malloc' of https://github.com/ZhiqiangLiu26/liburing 97499811 tests: add helpers.h to harden the tests 2927d416 setup: cleanup probe code b84afc4d Merge branch 'master' of https://github.com/ZhiqiangLiu26/liburing aa8c962c setup: check whether malloc succ before using it 0a3b79c8 test: don't expect links to be partially executed d0984a96 test: use random port in range for socket tests cce60667 test/fsync: use new io_uring_prep_sync_file_range() helper fbe134e8 io_uring_prep_sync_file_range: cleanups 245645c2 Merge branch 'master' of https://github.com/FletcherJ1/liburing cb2e92ca test/read-write: skip too-big test on non-root de21cb69 .gitignore: add sendmsg_fs_cve b1815ff8 Added prep function for sync_file_range op 5671af31 Merge branch 'Pr1' of https://github.com/romange/liburing e7629ecc Merge branch 'uman/man7-install' of https://github.com/UmanShahzad/liburing c2eb5932 Install man7 pages 121888b3 a test for CVE-2020-29373 (AF_UNIX path resolution) b94dc28f tests: make the per-test device/file map TEST_MAP 10a9ff84 src/queue: never clear data->wait_nr 989d7cb3 test/sq-poll-share: don't ignore wait errors c7143a45 test/link-timeout: close pipes after yourself 516e913e src/queue: control kernel enter with a var 51e6622b src/queue: don't re-wait for CQEs 7856addf Add test case for circular reference SQPOLL hang 1313aaf5 Merge branch 'AddDocForSplice' of https://github.com/NobodyXu/liburing 327d1217 Merge branch 'master' of https://github.com/CarterLi/liburing be648cf2 src/queue: don't loop when don't enter b4fea6b8 src/queue: clean _io_uring_get_cqe() err handling c2aea7b7 src/queue: don't wait for less than expected 51be5d38 src/queue.c: don't test `LIBURING_UDATA_TIMEOUT` for the latest kernel since we don't use it internally d871f482 Add inline doc in the comments for io_uring_prep_splice 52a91c8a Add const modifier to functions that do not change the state of the ring git-subtree-dir: vendor/liburing git-subtree-split: 74faa672769663fe5b22e99baf7cda41128c9455
Note that `io_uring_wait_cqe_timeout` no longer submits, so I had to add an extra `io_uring_submit(ring)` before waiting. See axboe/liburing#429 (comment)
talex5
added a commit
to talex5/opam-repository
that referenced
this pull request
Feb 2, 2022
CHANGES: New features: - Allow running in polling mode (@talex5 ocaml-multicore/ocaml-uring#44). Other changes: - Update to liburing 2.1 (@talex5 ocaml-multicore/ocaml-uring#46). - Remove bigstringaf dependency (@talex5 ocaml-multicore/ocaml-uring#43). - Cmdliner is only needed for tests (@talex5 ocaml-multicore/ocaml-uring#45). - Remove test dependencies on Bos and Rresult (@talex5 ocaml-multicore/ocaml-uring#40). - Address `Fmt.strf` deprecation error (@bikallem ocaml-multicore/ocaml-uring#38). - Update to cstruct 6.0.1 for `shiftv` (@talex5 ocaml-multicore/ocaml-uring#36).
talex5
added a commit
to talex5/opam-repository
that referenced
this pull request
Feb 2, 2022
CHANGES: New features: - Allow running in polling mode (@talex5 ocaml-multicore/ocaml-uring#44). Other changes: - Update to liburing 2.1 (@talex5 ocaml-multicore/ocaml-uring#46). - Remove bigstringaf dependency (@talex5 ocaml-multicore/ocaml-uring#43). - Cmdliner is only needed for tests (@talex5 ocaml-multicore/ocaml-uring#45). - Remove test dependencies on Bos and Rresult (@talex5 ocaml-multicore/ocaml-uring#40). - Address `Fmt.strf` deprecation error (@bikallem ocaml-multicore/ocaml-uring#38). - Update to cstruct 6.0.1 for `shiftv` (@talex5 ocaml-multicore/ocaml-uring#36).
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Note that
io_uring_wait_cqe_timeout
no longer submits, so I had to add an extraio_uring_submit(ring)
before waiting. See axboe/liburing#429 (comment).