-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Serialport operations failing since introduction of IO_URING in v1.45 #4101
Copy link
Copy link
Closed
Description
- Version: 1.45 (since linux: introduce io_uring support #3952 - also occurs on latest v1.x branch)
- Platform: 5.19.0-46-generic (Ubuntu 22.04.2 LTS)
I'm seeing these issues on x86 64bit, but other users have raised the issue on Raspberry Pi devices too. Additionally, they also appear to be seeing issues in v6 kernels regardless of architecture (per serialport/node-serialport#2656 and serialport/node-serialport#2659)
The issue occurs if we:
- Open a serial port
- Write some data
- Drain the port
- Try to close the connection
The port fails to close.
For a sample set of code please refer to serialport/node-serialport#2656 "steps to reproduce".
I can disable the issue if I change the linux.c file:
Lines 434 to 435 in d09441c
| /* Older kernels have a bug where the sqpoll thread uses 100% CPU. */ | |
| use = uv__kernel_version() >= /* 5.10.186 */ 0x050ABA ? 1 : -1; |
Excluding my kernel version number and recompile the library causes the operations work as expected. I should also note that setting the environment variable UV_USE_IO_URING=0 does not have any affect at all.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels