diff options
author | Serapheim Dimitropoulos <[email protected]> | 2020-07-29 09:43:33 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2020-07-29 09:43:33 -0700 |
commit | 843e9ca2e1ef347cf6b0271ed84438afc145dfd4 (patch) | |
tree | 5aed2d7636105945e0ef2799bb066beb206be8a0 /module/zfs/arc.c | |
parent | 5678d3f59389a241c8d9c032513c38209bb53e70 (diff) |
Introduce names for ZTHRs
When debugging issues or generally analyzing the runtime of
a system it would be nice to be able to tell the different
ZTHRs running by name rather than having to analyze their
stack.
Reviewed-by: Brian Behlendorf <[email protected]>
Reviewed-by: Matthew Ahrens <[email protected]>
Co-authored-by: Ryan Moeller <[email protected]>
Signed-off-by: Serapheim Dimitropoulos <[email protected]>
Closes #10630
Diffstat (limited to 'module/zfs/arc.c')
-rw-r--r-- | module/zfs/arc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 785ad9775..9e9227271 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -7339,10 +7339,10 @@ arc_init(void) kstat_install(arc_ksp); } - arc_evict_zthr = zthr_create_timer(arc_evict_cb_check, - arc_evict_cb, NULL, SEC2NSEC(1)); - arc_reap_zthr = zthr_create_timer(arc_reap_cb_check, - arc_reap_cb, NULL, SEC2NSEC(1)); + arc_evict_zthr = zthr_create_timer("arc_evict", + arc_evict_cb_check, arc_evict_cb, NULL, SEC2NSEC(1)); + arc_reap_zthr = zthr_create_timer("arc_reap", + arc_reap_cb_check, arc_reap_cb, NULL, SEC2NSEC(1)); arc_warm = B_FALSE; |