aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
diff options
context:
space:
mode:
authorOlivier Langlois <olivier@trillion01.com>2024-10-13 14:28:50 -0400
committerJens Axboe <axboe@kernel.dk>2024-11-06 13:55:38 -0700
commita5e26f49fef9485bc4ae24666d984a6de11e058c (patch)
tree878bfe97fd47d93ef7e38066791cb63434b65c4d /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
parent45b3941d09d13b3503309be1f023b83deaf69b4d (diff)
downloadlinux-a5e26f49fef9485bc4ae24666d984a6de11e058c.tar.gz
linux-a5e26f49fef9485bc4ae24666d984a6de11e058c.tar.bz2
linux-a5e26f49fef9485bc4ae24666d984a6de11e058c.zip
io_uring/napi: improve __io_napi_add
1. move the sock->sk pointer validity test outside the function to avoid the function call overhead and to make the function more more reusable 2. change its name to __io_napi_add_id to be more precise about it is doing 3. return an error code to report errors Signed-off-by: Olivier Langlois <olivier@trillion01.com> Link: https://lore.kernel.org/r/d637fa3b437d753c0f4e44ff6a7b5bf2c2611270.1728828877.git.olivier@trillion01.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions