SHA256
1
0
forked from pool/liburing

51 Commits

Author SHA256 Message Date
87188c187e Accepting request 1193386 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1193386
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=23
2024-08-13 11:22:20 +00:00
7904364dd0 Accepting request 1188710 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1188710
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=22
2024-07-22 15:14:46 +00:00
7c3a157816 Accepting request 1187031 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1187031
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=21
2024-07-14 06:48:43 +00:00
4f61499e5e - Fix buf-ring-nommap.t test failure
* test-buf-ring-nommap-zero-the-ringbuf-memory.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=45
2024-07-12 16:50:35 +00:00
b297e13040 Accepting request 1183838 from home:jirislaby:branches:devel:libraries:c_c++
- Update to 2.6:
  * Add getsockopt and setsockopt socket commands
  * Add test cases to test/hardlink
  * Man page fixes
  * Add futex support, and test cases
  * Add waitid support, and test cases
  * Add read multishot, and test cases
  * Add support for IORING_SETUP_NO_SQARRAY
  * Use IORING_SETUP_NO_SQARRAY as the default
  * Add support for IORING_OP_FIXED_FD_INSTALL
  * Add io_uring_prep_fixed_fd_install() helper
  * Support for napi busy polling
  * Improve/add test cases
  * Man page fixes
  * Add sample 'proxy' example
- Remove (they are upstream)
  * test-no-mmap-inval-0-return-is-fine-too.patch
  * test-recv-multishot-wait-for-the-right-amount-of-CQE.patch
- exclude buf-ring-nommap.t test (crashes)

OBS-URL: https://build.opensuse.org/request/show/1183838
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=44
2024-07-12 08:42:45 +00:00
1f09873d7a Accepting request 1164314 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1164314
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=20
2024-04-04 20:24:05 +00:00
5e644df226 Accepting request 1164309 from home:jirislaby:branches:devel:libraries:c_c++
- Update to 2.5:
  * Add support for io_uring_prep_cmd_sock()
  * Add support for application allocated ring memory, for placing rings
    in huge mem. Available through io_uring_queue_init_mem().
  * Add support for registered ring fds
  * Various documentation updates
  * Various fixes
- Remove (they are upstream)
  * test-io_uring_register-fix-errno-confusion-and-new-e.patch
  * tests-don-t-expect-multishot-recv-overflow-backloggi.patch
- Add
  * test-recv-multishot-wait-for-the-right-amount-of-CQE.patch (to fix test
    errors on the 6.8.2 kernel)
  * test-no-mmap-inval-0-return-is-fine-too.patch (fix the test)

OBS-URL: https://build.opensuse.org/request/show/1164309
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=42
2024-04-03 09:35:44 +00:00
a5bf691ecf Accepting request 1130864 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1130864
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=19
2023-12-07 18:08:49 +00:00
16397656c0 Accepting request 1130823 from home:Guillaume_G:PAC_BTI
- Fix build on 32-bit x86

OBS-URL: https://build.opensuse.org/request/show/1130823
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=40
2023-12-05 01:56:24 +00:00
f992da1d2d Accepting request 1130259 from home:Guillaume_G:PAC_BTI
- Make use of openSUSE build flags

OBS-URL: https://build.opensuse.org/request/show/1130259
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=39
2023-12-01 15:54:52 +00:00
c4ad243f03 Accepting request 1111506 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1111506
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=18
2023-09-17 17:28:52 +00:00
fe9dcda743 Accepting request 1111428 from home:jirislaby:branches:devel:libraries:c_c++
- tests-don-t-expect-multishot-recv-overflow-backloggi.patch (bsc#1215332)

OBS-URL: https://build.opensuse.org/request/show/1111428
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=37
2023-09-15 09:24:03 +00:00
Gabriel Krisman Bertazi
c5926b8f10 Accepting request 1111042 from home:jirislaby:branches:devel:libraries:c_c++
- build tests in parallel (using %{?_smp_mflags})

OBS-URL: https://build.opensuse.org/request/show/1111042
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=36
2023-09-14 16:18:26 +00:00
304f0c74a6 Accepting request 1108274 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1108274
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=17
2023-09-11 19:19:39 +00:00
f90992fef3 Accepting request 1108193 from home:jirislaby:branches:devel:libraries:c_c++
- add test-io_uring_register-fix-errno-confusion-and-new-e.patch
  to fix test errors on the 6.5 kernel

OBS-URL: https://build.opensuse.org/request/show/1108193
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=34
2023-08-31 11:51:00 +00:00
aeed3f9ac3 Accepting request 1092731 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1092731
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=16
2023-06-14 14:28:58 +00:00
7afdc4af6e Accepting request 1092686 from home:dmdiss:liburing_2.4
- Update to 2.4:
  * Add io_uring_{major,minor,check}_version() functions.
  * Add IO_URING_{MAJOR,MINOR,CHECK}_VERSION() macros.
  * FFI support (for non-C/C++ languages integration).
  * Add io_uring_prep_msg_ring_cqe_flags() function.
  * Deprecate --nolibc configure option.
  * CONFIG_NOLIBC is always enabled on x86-64, x86, and aarch64.
  * Add support for IORING_REGISTER_USE_REGISTERED_RING and use if available.
  * Add io_uring_close_ring_fd() function.
  * Add io_uring_prep_msg_ring_fd_alloc function.
  * Add io_uring_free_buf_ring() and io_uring_setup_buf_ring() functions.
  * Ensure that io_uring_prep_accept_direct(), io_uring_prep_openat_direct(),
    io_uring_prep_openat2_direct(), io_uring_prep_msg_ring_fd(), and
    io_uring_prep_socket_direct() factor in being called with
    IORING_FILE_INDEX_ALLOC for allocating a direct descriptor.
  * Add io_uring_prep_sendto() function.
- Add liburing-ffi2 package for corresponding FFI library, given that
  dependents will normally require either that or the base library (not both).
- Drop upstream patches:
  * 0001-Do-not-always-expect-multishot-recv-to-stop-posting-.patch
  * 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch
  * 0001-test-helpers-fix-socket-length-type.patch

OBS-URL: https://build.opensuse.org/request/show/1092686
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=32
2023-06-13 05:51:40 +00:00
2078fce892 Accepting request 1080969 from devel:libraries:c_c++
- Add 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch
  fixes test with kernel <= 5.16 (bsc#1209723)

OBS-URL: https://build.opensuse.org/request/show/1080969
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=15
2023-04-22 19:56:42 +00:00
72b4cf4dda add bz tag for
0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=30
2023-04-20 20:59:59 +00:00
c22a6c421f Accepting request 1080966 from home:gbertazi:branches:devel:libraries:c_c++
- Add 0001-test-file-verify.t-Don-t-run-over-mlock-limit-when-r.patch
  fixes test with kernel <= 5.16

Upstream patch fixing test/file-verify.t on the SP4 kernel.

OBS-URL: https://build.opensuse.org/request/show/1080966
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=29
2023-04-20 20:53:25 +00:00
42fa9353fe Accepting request 1067010 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1067010
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=14
2023-02-28 11:47:46 +00:00
934ef38e5b Accepting request 1067008 from home:jirislaby:branches:devel:libraries:c_c++
- add 0001-Do-not-always-expect-multishot-recv-to-stop-posting-.patch
  fixes tests with kernel 6.2

OBS-URL: https://build.opensuse.org/request/show/1067008
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=27
2023-02-21 13:29:30 +00:00
59df2c963b Accepting request 1060106 from devel:libraries:c_c++
- add 0001-test-helpers-fix-socket-length-type.patch 
  fixes tests on big endian

- update to 2.3:
  * Support non-libc build for aarch64.
  * Add io_uring_{enter,enter2,register,setup} syscall functions.
  * Add sync cancel interface, io_uring_register_sync_cancel().
  * Fix return value of io_uring_submit_and_wait_timeout() to match the
    man page.
  * Improvements to the regression tests
  * Add support and test case for passthrough IO
  * Add recv and recvmsg multishot helpers and support
  * Add documentation and support for IORING_SETUP_DEFER_TASKRUN
  * Fix potential missing kernel entry with IORING_SETUP_IOPOLL
  * Add support and documentation for zero-copy network transmit
  * Various optimizations
  * Many cleanups
  * Many man page additions and updates
- drop handle-eintr.patch, test-xattr-don-t-rely-on-NUL-termination.patch: upstream

OBS-URL: https://build.opensuse.org/request/show/1060106
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=13
2023-01-23 17:30:34 +00:00
17d092784d - add 0001-test-helpers-fix-socket-length-type.patch
fixes tests on big endian

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=25
2023-01-21 09:20:15 +00:00
380a715503 Accepting request 1036718 from home:dirkmueller:Factory
- update to 2.3:
  * Support non-libc build for aarch64.
  * Add io_uring_{enter,enter2,register,setup} syscall functions.
  * Add sync cancel interface, io_uring_register_sync_cancel().
  * Fix return value of io_uring_submit_and_wait_timeout() to match the
    man page.
  * Improvements to the regression tests
  * Add support and test case for passthrough IO
  * Add recv and recvmsg multishot helpers and support
  * Add documentation and support for IORING_SETUP_DEFER_TASKRUN
  * Fix potential missing kernel entry with IORING_SETUP_IOPOLL
  * Add support and documentation for zero-copy network transmit
  * Various optimizations
  * Many cleanups
  * Many man page additions and updates
- drop handle-eintr.patch, test-xattr-don-t-rely-on-NUL-termination.patch: upstream

OBS-URL: https://build.opensuse.org/request/show/1036718
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=24
2023-01-20 22:51:30 +00:00
b38b4b1ce2 Accepting request 1006001 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/1006001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=12
2022-09-27 18:13:07 +00:00
539647e863 Accepting request 1005895 from home:dirkmueller:Factory
- skip checks on qemu_linux_user builds

OBS-URL: https://build.opensuse.org/request/show/1005895
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=22
2022-09-26 07:35:06 +00:00
667f4bc662 Accepting request 997498 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/997498
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=11
2022-08-17 09:31:54 +00:00
2c0adee1c1 Accepting request 997479 from home:jirislaby:branches:devel:libraries:c_c++
- add test-xattr-don-t-rely-on-NUL-termination.patch (bsc#1202413)

OBS-URL: https://build.opensuse.org/request/show/997479
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=20
2022-08-17 08:26:19 +00:00
e75d4a606f Accepting request 989441 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/989441
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=10
2022-07-26 17:42:48 +00:00
51027e9971 Accepting request 987907 from home:dirkmueller:Factory
- add handle-eintr.patch, enable tests everywhere

OBS-URL: https://build.opensuse.org/request/show/987907
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=18
2022-07-08 13:50:50 +00:00
478137a537 Accepting request 985772 from home:dirkmueller:Factory
- enable tests for != ppc64le

OBS-URL: https://build.opensuse.org/request/show/985772
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=17
2022-07-06 11:22:40 +00:00
7742408a83 Accepting request 985597 from home:dirkmueller:Factory
- update to 2.2:
  * Support non-libc builds.
  * Optimized syscall handling for x86-64/x86/aarch64.
  * Enable non-lib function calls for fast path functions.
  * Add support for multishot accept.
  * io_uring_register_files() will set RLIMIT_NOFILE if necessary.
  * Add support for registered ring fds, io_uring_register_ring_fd(),
    reducingthe overhead of an io_uring_enter() system call.
  * Add support for the message ring opcode.
  * Add support for newer request cancelation features.
  * Add support for IORING_SETUP_COOP_TASKRUN, which can help reduce the
    overhead of io_uring in general. Most applications should set this flag,
    see the io_uring_setup.2 man page for details.
  * Add support for registering a sparse buffer and file set.
  * Add support for a new buffer provide scheme, see
    io_uring_register_buf_ring.3 for details.
  * Add io_uring_submit_and_wait_timeout() for submitting IO and waiting
    for completions with a timeout.
  * Add io_uring_prep_{read,write}v2 prep helpers.
  * Add io_uring_prep_close_direct() helper.
  * Add support for SQE128 and CQE32, which are doubly sized SQE and CQE
    rings. This is needed for some cases of the new IORING_OP_URING_CMD,
    notably for NVMe passthrough.
  * ~5500 lines of man page additions, including adding ~90 new man pages.
  * Synced with the 5.19 kernel release, supporting all the features of
    5.19 and earlier.
  * 24 new regression test cases, and ~7000 lines of new tests in general.
  * General optimizations and fixes.

- avoid requiring kernel-default (bsc#1193522)

OBS-URL: https://build.opensuse.org/request/show/985597
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=16
2022-06-28 13:58:05 +00:00
7933397bb5 Accepting request 973849 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/973849
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=9
2022-05-01 16:53:31 +00:00
d0aea47a61 Accepting request 973840 from home:dirkmueller:Factory
- avoid requiring kernel-default (bsc#1193522)

OBS-URL: https://build.opensuse.org/request/show/973840
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=14
2022-04-29 07:47:16 +00:00
ed2535c433 Accepting request 955726 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/955726
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=8
2022-02-18 22:02:47 +00:00
2d291dfa00 Accepting request 953217 from home:dmdiss:liburing_2.1_no_git
- add explicit liburing2-devel alias to reflect SLE/LEAP 15.4+ naming
  (bsc#1193522)

OBS-URL: https://build.opensuse.org/request/show/953217
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=13
2022-02-17 22:50:56 +00:00
088390d730 Accepting request 940703 from devel:libraries:c_c++
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/940703
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=7
2021-12-16 20:18:54 +00:00
2c3c6dc428 Add bz tag for SLE 2.1 update.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=12
2021-12-08 10:57:39 +00:00
8eda22d6fe Accepting request 925428 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/925428
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=6
2021-10-18 20:03:31 +00:00
8cc8f43113 Accepting request 925158 from home:dmdiss:liburing_2.1_no_git
- update to 2.1:

OBS-URL: https://build.opensuse.org/request/show/925158
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=11
2021-10-15 12:23:42 +00:00
Richard Brown
0293171828 Accepting request 879082 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/879082
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=5
2021-03-16 14:42:34 +00:00
Johannes Thumshirn
d05f591ccc Accepting request 878891 from home:dirkmueller:Factory
- skip building the tests that are neither installed nor run
  as they fail to build on 32bit platforms (like e.g. armv7l) (bsc#1181571) 

- update to 2.0:
  * Sync io_uring.h API file with Linux 5.12
  * helpers: prefix any helper with t_ instead of io_uring_
  * helpers: add io_uring_create_buffers() helper
  * helpers: add io_uring_create_file() helper
  * helpers: add io_uring_calloc helper
  * helpers: add io_uring_posix_memalign helper
  * setup: cleanup probe code
  * setup: check whether malloc succ before using it
  * io_uring_prep_sync_file_range: cleanups
  * .gitignore: add sendmsg_fs_cve
  * Added prep function for sync_file_range op
  * Install man7 pages
  * src/queue: never clear data->wait_nr
  * src/queue: control kernel enter with a var
  * src/queue: don't re-wait for CQEs
  * src/queue: don't loop when don't enter
  * src/queue: clean _io_uring_get_cqe() err handling
  * src/queue: don't wait for less than expected
  * Add inline doc in the comments for io_uring_prep_splice
  * Fix sigset_t not found in liburing.h
  * src/queue: update comment on io_uring_wait_cqes() with timeouts
  * io_uring.h: 5.12 pending kernel sync
  * man/io_uring_register.2: fix spelling error
  * man/io_uring_register.2: Add documentation on IORING_REGISTER_FILES_SKIP
  * Add two ring deadlock case
  * Fix IORING_OP_FALLOCATE args in io_uring_enter(2) man page

OBS-URL: https://build.opensuse.org/request/show/878891
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=9
2021-03-15 07:35:31 +00:00
eae1956968 Accepting request 847547 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/847547
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=4
2020-11-17 20:22:40 +00:00
Hannes Reinecke
3bdc8fc2f7 Accepting request 845118 from home:milsav92:branches:devel:libraries:c_c++
!!IMPORTANT!!
Version 0.7 BREAKS ABI COMPATIBILITY WITHOUT CHANGING THE SONAME!!!
https://github.com/axboe/liburing/issues/228
SONAME is bumped to 2 in commit 25bbcbef3e0a8bfba8044be55d08d5116c51dccd
im master branch.
!!!IMPORTANT!!!
- Update to version 0.6
  - removed barrier.h-add-generic-smp_mb-implementation.patch since
    it was merged in commit ba97eaf8f9ef2030d581be10df9d875dbfadc91d
- License changed to match upstream

OBS-URL: https://build.opensuse.org/request/show/845118
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=7
2020-11-10 16:36:31 +00:00
fe5072941f Accepting request 756024 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/756024
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=3
2019-12-12 22:19:38 +00:00
Johannes Thumshirn
6aed128f1d Accepting request 756021 from home:morbidrsa:branches:devel:libraries:c_c++
- Fix builds on ppc64le and s390x (bsc#1159055)
  + barrier.h-add-generic-smp_mb-implementation.patch

OBS-URL: https://build.opensuse.org/request/show/756021
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=5
2019-12-12 09:42:57 +00:00
0ba7261344 Accepting request 751545 from devel:libraries:c_c++
OBS-URL: https://build.opensuse.org/request/show/751545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=2
2019-11-29 14:58:52 +00:00
Johannes Thumshirn
42a438071a Accepting request 751544 from home:morbidrsa
Add Jira ticket reference

OBS-URL: https://build.opensuse.org/request/show/751544
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=3
2019-11-28 09:43:18 +00:00
8add177354 Accepting request 751263 from devel:libraries:c_c++
liburing native async IO for the Linux kernel, in a fast and efficient manner, for both buffered and O_DIRECT.

OBS-URL: https://build.opensuse.org/request/show/751263
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/liburing?expand=0&rev=1
2019-11-27 12:57:29 +00:00
bf4a084035 Accepting request 751256 from home:morbidrsa
liburing provides native async IO for the Linux kernel, in a fast and efficient manner, for both buffered and O_DIRECT.

OBS-URL: https://build.opensuse.org/request/show/751256
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/liburing?expand=0&rev=1
2019-11-27 10:24:16 +00:00
3 changed files with 0 additions and 83 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:319ff9096a5655362a9741c5145b45494db810e38679a1de82e2f440c17181a6
size 217397

View File

@@ -1,30 +0,0 @@
From: Jens Axboe <axboe@kernel.dk>
Date: Tue, 7 Nov 2023 08:05:52 -0700
Subject: test/no-mmap-inval: 0 return is fine too
Git-repo: git://git.kernel.dk/liburing.git
Git-commit: 9dc95a03e4a764e42b9e62990bb00feb9307ba63
Patch-mainline: 2.6
References: test_fix
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
test/no-mmap-inval.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/no-mmap-inval.c b/test/no-mmap-inval.c
index e851078d..9571fee0 100644
--- a/test/no-mmap-inval.c
+++ b/test/no-mmap-inval.c
@@ -31,7 +31,7 @@ int main(int argc, char *argv[])
if (ret == -EINVAL) {
/* kernel doesn't support SETUP_NO_MMAP */
return T_EXIT_SKIP;
- } else if (ret != -EFAULT) {
+ } else if (ret && ret != -EFAULT) {
fprintf(stderr, "Got %d, wanted -EFAULT\n", ret);
return T_EXIT_FAIL;
}
--
2.44.0

View File

@@ -1,50 +0,0 @@
From: Jens Axboe <axboe@kernel.dk>
Date: Tue, 6 Feb 2024 13:17:14 -0700
Subject: test/recv-multishot: wait for the right amount of CQEs
Git-repo: git://git.kernel.dk/liburing.git
Git-commit: a1d5e4b863a60af93d0cab9d4bbf578733337a90
Patch-mainline: 2.6
References: kernel 6.9
This test assumes that all task_work is a) has already arrived, and
b) will always be fully run even though the app asked for less, which
can lead to premature checking of CQEs and hitting end-of-CQEs before
it should.
Fix it up to wait for what it needs.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
---
test/recv-multishot.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/test/recv-multishot.c b/test/recv-multishot.c
index f66f1319..39983e8d 100644
--- a/test/recv-multishot.c
+++ b/test/recv-multishot.c
@@ -57,7 +57,7 @@ static int test(struct args *args)
int const N = 8;
int const N_BUFFS = N * 64;
int const N_CQE_OVERFLOW = 4;
- int const min_cqes = 2;
+ int const min_cqes = args->early_error ? 2 : 8;
int const NAME_LEN = sizeof(struct sockaddr_storage);
int const CONTROL_LEN = CMSG_ALIGN(sizeof(struct sockaddr_storage))
+ sizeof(struct cmsghdr);
@@ -237,7 +237,11 @@ static int test(struct args *args)
usleep(1000);
if ((args->stream && !early_error) || recv_cqes < min_cqes) {
- ret = io_uring_wait_cqes(&ring, &cqe, 1, &timeout, NULL);
+ unsigned int to_wait = 1;
+
+ if (recv_cqes < min_cqes)
+ to_wait = min_cqes - recv_cqes;
+ ret = io_uring_wait_cqes(&ring, &cqe, to_wait, &timeout, NULL);
if (ret && ret != -ETIME) {
fprintf(stderr, "wait final failed: %d\n", ret);
ret = -1;
--
2.44.0