lkml.org 
[lkml]   [2025]   [May]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v3 1/2] USB: core: add a memory pool to urb caching host-controller private data
From
On 21.5.2025 16.23, David Wang wrote:

>> Won't this still allocate a lot of unnecessary memory for the roothub urbs?
>> i.e. the ones queued with rh_urb_enqueue(hcd, urb).
>> The host drivers don't use the urb->hcpriv of those URBs.
>>
> The mempool slot is alloced on demand when hcd request private data with its urb.
> If a urb is ever used by hcd and the hcd requests private data with it, a memory would be alloced
> and this memory will not be released until the urb is destroyed.

Ok, thanks for the clarification.
Roothubs URBs should be fine then.

Thanks
Mathias

\
 
 \ /
  Last update: 2025-05-21 15:35    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog