Re: [PATCH 1/1] io_uring: don't re-read iovecs in iopoll_complete

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

 



On 2/25/21 6:02 AM, Pavel Begunkov wrote:
> Issuing a request for IO poll and doing actual IO polling might be done
> from different syscalls, so userspace's iovec used during submission may
> already be gone by the moment of reaping the request and doing reissue
> with prep inside is not always safe.
> 
> Fail IO poll reissue with -EAGAIN for requests that would need to read
> iovec from the userspace. The userspace have to check for it, so it's
> fine.

That looks fine, we can't be off the submit path at that point, so
should get -EAGAIN if we don't have the state we need.

-- 
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