]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: compare cached_cq_tail with cq.head in_io_uring_poll
authoryangerkun <yangerkun@huawei.com>
Tue, 24 Sep 2019 12:53:34 +0000 (20:53 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 24 Sep 2019 13:04:15 +0000 (07:04 -0600)
commitc29c0ecd095cc408d6e991991e1b3c00ad085f71
tree57e6f539eb3582046f05bfad7ca1b34401ace56b
parent3fdf8dcd7e3e0d2b54948a227cbc9af29295d74f
io_uring: compare cached_cq_tail with cq.head in_io_uring_poll

After f739c4b("io_uring: allocate the two rings together"), we compare
sq.head with cached_cq_tail to determine does there any cq invalid.
Actually, we should use cq.head.

Fixes: f739c4b60af4 ("io_uring: allocate the two rings together")
Signed-off-by: yangerkun <yangerkun@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c