• Jens Axboe's avatar
    io_uring/rw: don't allow multishot reads without NOWAIT support · 2a975d42
    Jens Axboe authored
    Supporting multishot reads requires support for NOWAIT, as the
    alternative would be always having io-wq execute the work item whenever
    the poll readiness triggered. Any fast file type will have NOWAIT
    support (eg it understands both O_NONBLOCK and IOCB_NOWAIT). If the
    given file type does not, then simply resort to single shot execution.
    
    Cc: stable@vger.kernel.org
    Fixes: fc68fcda ("io_uring/rw: add support for IORING_OP_READ_MULTISHOT")
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    2a975d42
rw.c 30.3 KB