axboe / liburing

Library providing helpers for the Linux kernel io_uring support
MIT License
2.89k stars 407 forks source link

test/linked-defer-close: make test work without improper IOSQE_IO_LINK #1236

Closed Cydox closed 2 months ago

Cydox commented 2 months ago

This makes the linked-defer-close test work correctly without relying on improper usage of IOSQE_IO_LINK.

The test will now issue three sends with IOSQE_CQE_SKIP_SUCCESS | IOSQE_IO_LINK followed by a close with IOSQE_CQE_SKIP_SUCCESS on a ring setup with IORING_SETUP_DEFER_TASKRUN.

On an incorrectly behaving kernel the connection will not be closed and remain open.

This test first fails on kernel commit 846072f16eed3b3fb4e59b677f3ed8afb8509b89

Signed-off-by: Jan Hendrik Farr kernel@jfarr.cc

axboe commented 2 months ago

Thanks!