[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <173979636710.644986.8096661613228249151.b4-ty@kernel.dk>
Date: Mon, 17 Feb 2025 05:46:07 -0700
From: Jens Axboe <axboe@...nel.dk>
To: Pavel Begunkov <asml.silence@...il.com>,
Caleb Sander Mateos <csander@...estorage.com>
Cc: io-uring@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] io_uring/rsrc: avoid NULL check in io_put_rsrc_node()
On Sun, 16 Feb 2025 15:58:59 -0700, Caleb Sander Mateos wrote:
> Most callers of io_put_rsrc_node() already check that node is non-NULL:
> - io_rsrc_data_free()
> - io_sqe_buffer_register()
> - io_reset_rsrc_node()
> - io_req_put_rsrc_nodes() (REQ_F_BUF_NODE indicates non-NULL buf_node)
>
> Only io_splice_cleanup() can call io_put_rsrc_node() with a NULL node.
> So move the NULL check there.
>
> [...]
Applied, thanks!
[1/1] io_uring/rsrc: avoid NULL check in io_put_rsrc_node()
commit: 496f56bf9f1acf11ce14489f34d81ba6e4023f42
Best regards,
--
Jens Axboe
Powered by blists - more mailing lists