Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

io_uring/zcrx: clear RQ headers on init

It might be unexpected to users if the RQ head/tail after a ring
creation are not zeroed, fix that.

Cc: stable@vger.kernel.org
Fixes: 6f377873cb239 ("io_uring/zcrx: add interface queue and refill queue")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://patch.msgid.link/331f94663c3e8f021ffa3cb770ca2844a07d4855.1776760911.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Pavel Begunkov and committed by
Jens Axboe
4f02cc40 0fcccfd8

+1
+1
io_uring/zcrx.c
··· 396 396 ifq->rq.ring = (struct io_uring *)ptr; 397 397 ifq->rq.rqes = (struct io_uring_zcrx_rqe *)(ptr + off); 398 398 399 + memset(ifq->rq.ring, 0, sizeof(*ifq->rq.ring)); 399 400 return 0; 400 401 } 401 402