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)
commitfb775faa9e46ff481e4ced11116c9bd45359cb43
tree324047efa74cb0da1583ddc4cafb79bbb6d7356e
parent0d7bae69c574c5f25802f8a71252e7d66933a3ab
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