Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

RDMA/uverbs: Update outdated reference to remove_commit_idr_uobject()

The function remove_commit_idr_uobject() was split into
destroy_hw_idr_uobject() and remove_handle_idr_uobject() by
commit 0f50d88a6e9a ("IB/uverbs: Allow all DESTROY commands
to succeed after disassociate"). The kref put that the
comment refers to now lives in remove_handle_idr_uobject().
Update the stale reference.

Also update "allocated this IDR with a NULL object" to
"allocated this XArray entry with a NULL pointer" to match
the actual data structure (xa_store) and the wording already
used two lines below ("transfers our kref on uobj to the
XArray").

Assisted-by: unnamed:deepseek-v3.2 coccinelle
Signed-off-by: Kexin Sun <kexinsun@smail.nju.edu.cn>
Link: https://patch.msgid.link/20260321105859.7642-1-kexinsun@smail.nju.edu.cn
Signed-off-by: Leon Romanovsky <leon@kernel.org>

authored by

Kexin Sun and committed by
Leon Romanovsky
b247ed6f dc76086a

+2 -2
+2 -2
drivers/infiniband/core/rdma_core.c
··· 590 590 void *old; 591 591 592 592 /* 593 - * We already allocated this IDR with a NULL object, so 593 + * We already allocated this XArray entry with a NULL pointer, so 594 594 * this shouldn't fail. 595 595 * 596 596 * NOTE: Storing the uobj transfers our kref on uobj to the XArray. 597 - * It will be put by remove_commit_idr_uobject() 597 + * It will be put by remove_handle_idr_uobject() 598 598 */ 599 599 old = xa_store(&ufile->idr, uobj->id, uobj, GFP_KERNEL); 600 600 WARN_ON(old != NULL);