On Wed, Nov 01, 2023 at 09:01:02AM -0400, Brian Foster wrote:
> Guenter Roeck reports a lockdep splat and DEBUG_OBJECTS_WORK related
> warning when bch2_copygc_thread() initializes its rhashtable. The
> lockdep splat relates to a warning print caused by the fact that the
> rhashtable exists on the stack but is not annotated as so. This is
> something that could be addressed by INIT_WORK_ONSTACK(), but
> rhashtable doesn't expose that control and probably isnt worth the
> churn for just one user. Instead, dynamically allocate the
> buckets_in_flight structure and avoid the splat that way.
> 
> Reported-by: Guenter Roeck <[email protected]>
> Tested-by: Guenter Roeck <[email protected]>
> Signed-off-by: Brian Foster <[email protected]>

Thanks, applied

Reply via email to