Searched refs:sect_in (Results 1 – 1 of 1) sorted by relevance
496 static int drbd_rs_controller(struct drbd_peer_device *peer_device, unsigned int sect_in) in drbd_rs_controller() argument514 if (device->rs_in_flight + sect_in == 0) { /* At start of resync */ in drbd_rs_controller()518 sect_in * dc->c_delay_target * HZ / (SLEEP_TIME * 10); in drbd_rs_controller()532 req_sect = sect_in + curr_corr; in drbd_rs_controller()552 unsigned int sect_in; /* Number of sectors that came in since the last turn */ in drbd_rs_number_requests() local555 sect_in = atomic_xchg(&device->rs_sect_in, 0); in drbd_rs_number_requests()556 device->rs_in_flight -= sect_in; in drbd_rs_number_requests()561 number = drbd_rs_controller(peer_device, sect_in) >> (BM_BLOCK_SHIFT - 9); in drbd_rs_number_requests()