Re: [PATCH] io_uring: Fix linked fixed-read/write

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

 



On 11/23/19 3:42 PM, Pavel Begunkov wrote:
> Dependant links of a fixed-read/write are always cancelled. The reason
> is that io_complete_rw_common() uses req->result to decide whether to
> fail links, which is set as res=io_import_iovec(). However,
> io_import_fixed() doesn't return size, but error code.

See:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=5e559561a8d7e6d4adfce6aa8fbf3daa3dec1577

Just not in the 5.5 branches. We probably do want to make it ssize_t to
be more proper, but IO in Linux is capped at 2G anyway so doesn't make
a difference right now.

-- 
Jens Axboe




[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