• Jens Axboe's avatar
    io_uring: only return -EBUSY for submit on non-flushed backlog · c4a2ed72
    Jens Axboe authored
    
    
    We return -EBUSY on submit when we have a CQ ring overflow backlog, but
    that can be a bit problematic if the application is using pure userspace
    poll of the CQ ring. For that case, if the ring briefly overflowed and
    we have pending entries in the backlog, the submit flushes the backlog
    successfully but still returns -EBUSY. If we're able to fully flush the
    CQ ring backlog, let the submission proceed.
    Reported-by: default avatarDan Melnic <dmm@fb.com>
    Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
    c4a2ed72
io_uring.c 117 KB