summaryrefslogtreecommitdiffstats
path: root/sys/cddl
diff options
context:
space:
mode:
authorsmh <smh@FreeBSD.org>2013-03-21 10:41:30 +0000
committersmh <smh@FreeBSD.org>2013-03-21 10:41:30 +0000
commit976f4808aa80d36223d5345a31620f37c6230ab7 (patch)
tree470d29892e8111c3b7dff7bac3823c311bfa42de /sys/cddl
parentee3952780d3120fe00163cf424dc119809c90ac4 (diff)
downloadFreeBSD-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.c5
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) {
OpenPOWER on IntegriCloud