Short read handling inconsistency for IOSQE_IO_LINK

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

Short read of IORING_OP_READ in a link chain is considered an error, because it
will break READ-WRITE chain, which is good.

The problems are:

1. Short read of IORING_OP_RECV in a link chain is *NOT* considered an error,
which is odd and not consistant with IORING_OP_READ. Is it a bug or by design?

2. Short read of IORING_OP_SPLICE in a link chain is considered an error. It is
consistant with IORING_OP_READ, but not very useful because the link
   1) splice(fd1, NULL, pfd1, NULL, -1, 0)
   2) splice(pfd2, NULL, fd2, NULL, -1, 0)
is a valid operation since the kernel knows how much data can be read in a pipe.

Any thoughts?

Regards,
Carter





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux