Lines Matching refs:devbsdunit
621 size_t devbsdunit;
623 devbsdunit = mp->mnt_devbsdunit;
625 if (devbsdunit < LOWPRI_MAX_NUM_DEV) {
626 *tv = _throttle_io_info[devbsdunit].last_IO_timestamp;
635 size_t devbsdunit;
637 devbsdunit = mp->mnt_devbsdunit;
639 if (devbsdunit < LOWPRI_MAX_NUM_DEV) {
640 microuptime(&_throttle_io_info[devbsdunit].last_IO_timestamp);
644 int throttle_io_will_be_throttled(int lowpri_window_msecs, size_t devbsdunit)
650 timevalsub(&elapsed, &_throttle_io_info[devbsdunit].last_normal_IO_timestamp);
750 size_t devbsdunit;
774 devbsdunit = buf_vnode(bp)->v_mount->mnt_devbsdunit;
776 devbsdunit = LOWPRI_MAX_NUM_DEV - 1;
779 microuptime(&_throttle_io_info[devbsdunit].last_normal_IO_timestamp);
793 ut->uu_devbsdunit = devbsdunit;
794 oldValue = OSIncrementAtomic(&_throttle_io_info[devbsdunit].numthreads_throttling);
801 if (ut->uu_devbsdunit != devbsdunit) { // the thread sends I/Os to different devices within the same system call
804 OSIncrementAtomic(&_throttle_io_info[devbsdunit].numthreads_throttling);
805 ut->uu_devbsdunit = devbsdunit;
807 int numthreads = MAX(1, _throttle_io_info[devbsdunit].numthreads_throttling);
816 size_t devbsdunit;
819 devbsdunit = buf_vnode(bp)->v_mount->mnt_devbsdunit;
821 devbsdunit = LOWPRI_MAX_NUM_DEV - 1;
823 microuptime(&_throttle_io_info[devbsdunit].last_IO_timestamp);