mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 09:51:00 +07:00
io_uring: remove empty cleanup of OP_OPEN* reqs
A switch in __io_clean_op() doesn't have default, it's pointless to list opcodes that doesn't do any cleanup. Remove IORING_OP_OPEN* from there. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
dca9cf8b87
commit
1c2da9e883
@ -5473,9 +5473,6 @@ static void __io_clean_op(struct io_kiocb *req)
|
||||
if (req->flags & REQ_F_BUFFER_SELECTED)
|
||||
kfree(req->sr_msg.kbuf);
|
||||
break;
|
||||
case IORING_OP_OPENAT:
|
||||
case IORING_OP_OPENAT2:
|
||||
break;
|
||||
case IORING_OP_SPLICE:
|
||||
case IORING_OP_TEE:
|
||||
io_put_file(req, req->splice.file_in,
|
||||
|
Loading…
Reference in New Issue
Block a user