summaryrefslogtreecommitdiff
path: root/net/socket.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-11-21 21:01:26 -0700
committerJens Axboe <axboe@kernel.dk>2019-11-25 19:56:11 -0700
commitc4a2ed72c9a61594b6afc23e1fbc78878d32b5a3 (patch)
tree6375063a0714ee09939f2660af0fba287e3abf96 /net/socket.c
parentf9bd67f69af56d712bfd498f5ad9cf7bb177d600 (diff)
downloadlwn-c4a2ed72c9a61594b6afc23e1fbc78878d32b5a3.tar.gz
lwn-c4a2ed72c9a61594b6afc23e1fbc78878d32b5a3.zip
io_uring: only return -EBUSY for submit on non-flushed backlog
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: Dan Melnic <dmm@fb.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions