Re: [PATCH 1/1] io_uring: allow empty slots for reg buffers

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

 



On 4/28/21 6:11 AM, Pavel Begunkov wrote:
> Allow empty reg buffer slots any request using which should fail. This
> allows users to not register all buffers in advance, but do it lazily
> and/or on demand via updates. That is achieved by setting iov_base and
> iov_len to zero for registration and/or buffer updates. Empty buffer
> can't have a non-zero tag.
> 
> Implementation details: to not add extra overhead to io_import_fixed(),
> create a dummy buffer crafted to fail any request using it, and set it
> to all empty buffer slots.

Applied, thanks.

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