diff options
author | Caleb Sander Mateos <csander@purestorage.com> | 2025-03-01 02:59:14 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2025-03-04 17:17:15 +0300 |
commit | fe21a4532ef2a6852c89b352cb8ded0d37b4745c (patch) | |
tree | e5ef65203d49a4e1cdaeffbf82b0d0a996ab97f9 /tools/perf/scripts/python | |
parent | 6e5d321a08e30f746d63fc56e7ea5c46b06fbe99 (diff) | |
download | linux-fe21a4532ef2a6852c89b352cb8ded0d37b4745c.tar.xz |
io_uring/rsrc: skip NULL file/buffer checks in io_free_rsrc_node()
io_rsrc_node's of type IORING_RSRC_FILE always have a file attached
immediately after they are allocated. IORING_RSRC_BUFFER nodes won't be
returned from io_sqe_buffer_register()/io_buffer_register_bvec() until
they have a io_mapped_ubuf attached.
So remove the checks for a NULL file/buffer in io_free_rsrc_node().
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Link: https://lore.kernel.org/r/20250228235916.670437-5-csander@purestorage.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions