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_cache.c
          +++ new/usr/src/uts/common/fs/zfs/vdev_cache.c
↓ open down ↓ 302 lines elided ↑ open up ↑
 303  303          }
 304  304  
 305  305          ve = vdev_cache_allocate(zio);
 306  306  
 307  307          if (ve == NULL) {
 308  308                  mutex_exit(&vc->vc_lock);
 309  309                  return (SET_ERROR(ENOMEM));
 310  310          }
 311  311  
 312  312          fio = zio_vdev_delegated_io(zio->io_vd, cache_offset,
 313      -            ve->ve_data, VCBS, ZIO_TYPE_READ, ZIO_PRIORITY_CACHE_FILL,
      313 +            ve->ve_data, VCBS, ZIO_TYPE_READ, ZIO_PRIORITY_NOW,
 314  314              ZIO_FLAG_DONT_CACHE, vdev_cache_fill, ve);
 315  315  
 316  316          ve->ve_fill_io = fio;
 317  317          zio_vdev_io_bypass(zio);
 318  318          zio_add_child(zio, fio);
 319  319  
 320  320          mutex_exit(&vc->vc_lock);
 321  321          zio_nowait(fio);
 322  322          VDCSTAT_BUMP(vdc_stat_misses);
 323  323  
↓ open down ↓ 103 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX