Skip to content
Commit daa5de54 authored by yangerkun's avatar yangerkun Committed by Jens Axboe
Browse files

io_uring: compare cached_cq_tail with cq.head in_io_uring_poll



After 75b28aff("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: 75b28aff ("io_uring: allocate the two rings together")
Signed-off-by: default avataryangerkun <yangerkun@huawei.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 32960613
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment