summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2020-07-09 00:15:26 +0300
committerJens Axboe <axboe@kernel.dk>2020-07-09 00:15:26 +0300
commit5acbbc8ed3a9aef71c6eb5f19ba24f7321200220 (patch)
tree49c2ee71d9449bcfdcffd6c5670ac0dd6edd7073 /include/uapi
parentaa340845ae6f019e0a12321a1741c14679bb0664 (diff)
downloadlinux-5acbbc8ed3a9aef71c6eb5f19ba24f7321200220.tar.xz
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: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions