rcu_read_lock();
/*
- * The idr_find is guaranteed to return a pointer to something that
- * isn't freed yet, or NULL, as the free after idr_remove goes through
+ * The xa_load is guaranteed to return a pointer to something that
+ * isn't freed yet, or NULL, as the free after xa_erase goes through
* kfree_rcu(). However the object may still have been released and
* kfree() could be called at any time.
*/
void *old;
/*
- * We already allocated this IDR with a NULL object, so
+ * We already allocated this index with a NULL object, so
* this shouldn't fail.
*
* NOTE: Storing the uobj transfers our kref on uobj to the XArray.