io_uring: fix ->extra{1,2} misuse
authorPavel Begunkov <asml.silence@gmail.com>
Wed, 15 Jun 2022 10:23:05 +0000 (11:23 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 15 Jun 2022 11:06:09 +0000 (05:06 -0600)
commit2caf9822f0507463168a9e83f93c75b3e3fac971
treeea843b2eb742890b567a0e296dea0f7d2f307d45
parent29ede2014c87576d2fc83680aa4c1d7403db0dfe
io_uring: fix ->extra{1,2} misuse

We don't really know the state of req->extra{1,2] fields in
__io_fill_cqe_req(), if an opcode handler is not aware of CQE32 option,
it never sets them up properly. Track the state of those fields with a
request flag.

Fixes: 76c68fbf1a1f9 ("io_uring: enable CQE32")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/4b3e5be512fbf4debec7270fd485b8a3b014d464.1655287457.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c