projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8e64b5
)
io_uring: simplify iovec freeing in io_clean_op()
author
Pavel Begunkov
<asml.silence@gmail.com>
Thu, 17 Jun 2021 17:14:03 +0000
(18:14 +0100)
committer
Jens Axboe
<axboe@kernel.dk>
Fri, 18 Jun 2021 15:22:02 +0000
(09:22 -0600)
We don't get REQ_F_NEED_CLEANUP for rw unless there is ->free_iovec set,
so remove the optimisation of NULL checking it inline, kfree() will take
care if that would ever be the case.
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Link:
https://lore.kernel.org/r/a233dc655d3d45bd4f69b73d55a61de46d914415.1623949695.git.asml.silence@gmail.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io_uring.c
patch
|
blob
|
history
diff --git
a/fs/io_uring.c
b/fs/io_uring.c
index af93f790a1dabfbd4bbcf6f60c749ef43e4e650b..8543f1c37e2b595791a9952690ca2d46a09b877d 100644
(file)
--- a/
fs/io_uring.c
+++ b/
fs/io_uring.c
@@
-6092,8
+6092,8
@@
static void io_clean_op(struct io_kiocb *req)
case IORING_OP_WRITE_FIXED:
case IORING_OP_WRITE: {
struct io_async_rw *io = req->async_data;
- if (io->free_iovec)
-
kfree(io->free_iovec);
+
+ kfree(io->free_iovec);
break;
}
case IORING_OP_RECVMSG: