]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: fix poll full SQ detection
authorStefan Bühler <source@stbuehler.de>
Fri, 19 Apr 2019 09:57:46 +0000 (11:57 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 22 Apr 2019 17:00:58 +0000 (11:00 -0600)
commit03a250630e22d5188ed2d305b88da8cc6630e0a0
tree324047efa74cb0da1583ddc4cafb79bbb6d7356e
parentd3b750fa4f4cf84e7b5ebe740db0c520b561edbf
io_uring: fix poll full SQ detection

io_uring_poll shouldn't signal EPOLLOUT | EPOLLWRNORM if the queue is
full; the old check would always signal EPOLLOUT | EPOLLWRNORM (unless
there were U32_MAX - 1 entries in the SQ queue).

Signed-off-by: Stefan Bühler <source@stbuehler.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c