Author: smh
Date: Thu Mar 21 10:41:30 2013
New Revision: 248576
URL: http://svnweb.freebsd.org/changeset/base/248576

Log:
  Names the ZFS TRIM thread
  
  Reviewed by:  pjd (mentor)
  Approved by:  pjd (mentor)
  MFC after:    2 weeks

Modified:
  head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c

Modified: head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c
==============================================================================
--- head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c      Thu Mar 
21 10:29:05 2013        (r248575)
+++ head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/trim_map.c      Thu Mar 
21 10:41:30 2013        (r248576)
@@ -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) {
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to