Skip to content
Commit 5acbbc8e authored by Jens Axboe's avatar Jens Axboe
Browse files

io_uring: only call kfree() for a non-zero pointer



It's safe to call kfree() with a NULL pointer, but it's also pointless.
Most of the time we don't have any data to free, and at millions of
requests per second, the redundant function call adds noticeable
overhead (about 1.3% of the runtime).

Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent aa340845
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment