Print this page
4045 zfs write throttle & i/o scheduler performance work
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Adam Leventhal <ahl@delphix.com>
Reviewed by: Christopher Siden <christopher.siden@delphix.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/fs/zfs/vdev_raidz.c
          +++ new/usr/src/uts/common/fs/zfs/vdev_raidz.c
↓ open down ↓ 2174 lines elided ↑ open up ↑
2175 2175                   */
2176 2176                  for (c = 0; c < rm->rm_cols; c++) {
2177 2177                          rc = &rm->rm_col[c];
2178 2178                          cvd = vd->vdev_child[rc->rc_devidx];
2179 2179  
2180 2180                          if (rc->rc_error == 0)
2181 2181                                  continue;
2182 2182  
2183 2183                          zio_nowait(zio_vdev_child_io(zio, NULL, cvd,
2184 2184                              rc->rc_offset, rc->rc_data, rc->rc_size,
2185      -                            ZIO_TYPE_WRITE, zio->io_priority,
     2185 +                            ZIO_TYPE_WRITE, ZIO_PRIORITY_ASYNC_WRITE,
2186 2186                              ZIO_FLAG_IO_REPAIR | (unexpected_errors ?
2187 2187                              ZIO_FLAG_SELF_HEAL : 0), NULL, NULL));
2188 2188                  }
2189 2189          }
2190 2190  }
2191 2191  
2192 2192  static void
2193 2193  vdev_raidz_state_change(vdev_t *vd, int faulted, int degraded)
2194 2194  {
2195 2195          if (faulted > vd->vdev_nparity)
↓ open down ↓ 20 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX