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-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 10:42:06 -10:00
2023-10-30 10:23:42 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 10:23:42 -10:00
2023-10-30 10:23:42 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-09-17 10:33:53 -07:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 10:12:29 -10:00
2023-10-30 10:12:29 -10:00
2023-08-31 12:07:34 -05:00
2023-10-30 09:14:19 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-06 11:01:23 +02:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-10-30 09:47:13 -10:00
2023-06-15 13:37:53 +02:00
2023-10-30 10:23:42 -10:00
2023-10-30 09:47:13 -10:00
2023-06-28 20:35:21 -07:00
2023-06-26 09:50:21 -07:00
2023-05-17 09:16:59 +02:00
2023-08-24 16:20:30 -07:00
2023-09-11 23:59:47 -04:00
2023-07-26 14:56:07 +02:00
2023-08-21 13:46:25 -07:00
2023-10-30 09:14:19 -10:00
2023-10-19 11:02:47 +02:00
2023-10-30 09:47:13 -10:00
2023-08-28 11:04:18 -07:00
2023-10-22 17:08:07 -04:00
2023-08-19 12:12:12 +02:00
2023-10-22 17:08:07 -04:00
2023-01-19 09:24:30 +01:00
2023-10-30 09:14:19 -10:00
2023-10-30 09:47:13 -10:00
2023-05-19 04:30:22 +02:00
2023-05-19 04:30:22 +02:00
2023-08-15 08:32:45 +02:00
2023-02-20 11:53:11 -08:00