linux/fs/bcachefs
Brian Foster 0e91d3a6d5 bcachefs: fix odebug warn and lockdep splat due to on-stack rhashtable
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 <linux@roeck-us.net>
Tested-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
2023-11-04 22:19:13 -04:00
..
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-10-31 12:18:37 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:37 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:05 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-30 22:26:45 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00
2023-10-31 12:18:38 -04:00
2023-11-01 21:11:08 -04:00
2023-11-01 21:11:08 -04:00