• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/sys/contrib/openzfs/module/zfs/

Lines Matching refs:smh

596 	spa_mmp_history_t *smh = (spa_mmp_history_t *)data;
602 seq_printf(f, (smh->error_start ? skip_fmt : write_fmt),
603 (u_longlong_t)smh->mmp_node_id, (u_longlong_t)smh->txg,
604 (u_longlong_t)smh->timestamp, (longlong_t)smh->io_error,
605 (longlong_t)smh->duration, (u_longlong_t)smh->mmp_delay,
606 (u_longlong_t)smh->vdev_guid, (u_longlong_t)smh->vdev_label,
607 (smh->vdev_path ? smh->vdev_path : "-"));
616 spa_mmp_history_t *smh;
618 smh = list_remove_head(&shl->procfs_list.pl_list);
619 if (smh->vdev_path)
620 kmem_strfree(smh->vdev_path);
621 kmem_free(smh, sizeof (spa_mmp_history_t));
679 spa_mmp_history_t *smh;
686 for (smh = list_tail(&shl->procfs_list.pl_list); smh != NULL;
687 smh = list_prev(&shl->procfs_list.pl_list, smh)) {
688 if (smh->mmp_node_id == mmp_node_id) {
689 ASSERT3U(smh->io_error, !=, 0);
690 smh->duration = gethrtime() - smh->error_start;
691 smh->vdev_guid++;
710 spa_mmp_history_t *smh;
717 for (smh = list_tail(&shl->procfs_list.pl_list); smh != NULL;
718 smh = list_prev(&shl->procfs_list.pl_list, smh)) {
719 if (smh->mmp_node_id == mmp_node_id) {
720 ASSERT(smh->io_error == 0);
721 smh->io_error = io_error;
722 smh->duration = duration;
743 spa_mmp_history_t *smh;
748 smh = kmem_zalloc(sizeof (spa_mmp_history_t), KM_SLEEP);
749 smh->txg = txg;
750 smh->timestamp = timestamp;
751 smh->mmp_delay = mmp_delay;
753 smh->vdev_guid = vd->vdev_guid;
755 smh->vdev_path = kmem_strdup(vd->vdev_path);
757 smh->vdev_label = label;
758 smh->mmp_node_id = mmp_node_id;
761 smh->io_error = error;
762 smh->error_start = gethrtime();
763 smh->vdev_guid = 1;
767 procfs_list_add(&shl->procfs_list, smh);