diff options
author | smh <smh@FreeBSD.org> | 2013-03-21 10:41:30 +0000 |
---|---|---|
committer | smh <smh@FreeBSD.org> | 2013-03-21 10:41:30 +0000 |
commit | 976f4808aa80d36223d5345a31620f37c6230ab7 (patch) | |
tree | 470d29892e8111c3b7dff7bac3823c311bfa42de /sys/cddl | |
parent | ee3952780d3120fe00163cf424dc119809c90ac4 (diff) | |
download | FreeBSD-src-976f4808aa80d36223d5345a31620f37c6230ab7.zip FreeBSD-src-976f4808aa80d36223d5345a31620f37c6230ab7.tar.gz |
Names the ZFS TRIM thread
Reviewed by: pjd (mentor)
Approved by: pjd (mentor)
MFC after: 2 weeks
Diffstat (limited to 'sys/cddl')
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c index 3c0d36a..f08f66b 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c @@ -496,6 +496,11 @@ trim_thread(void *arg) spa_t *spa = arg; zio_t *zio; +#ifdef _KERNEL + (void) snprintf(curthread->td_name, sizeof(curthread->td_name), + "trim %s", spa_name(spa)); +#endif + for (;;) { mutex_enter(&spa->spa_trim_lock); if (spa->spa_trim_thread == NULL) { |