]> 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)
commitd6761ac0ad89a75253ab9a653756819d67bd3b10
tree324047efa74cb0da1583ddc4cafb79bbb6d7356e
parent52583b080bfdb21cf1eda49bb283a99ead388fd4
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