Searched refs:sect_in (Results 1 – 1 of 1) sorted by relevance
496 static int drbd_rs_controller(struct drbd_device *device, unsigned int sect_in) in drbd_rs_controller() argument513 if (device->rs_in_flight + sect_in == 0) { /* At start of resync */ in drbd_rs_controller()517 sect_in * dc->c_delay_target * HZ / (SLEEP_TIME * 10); in drbd_rs_controller()531 req_sect = sect_in + curr_corr; in drbd_rs_controller()550 unsigned int sect_in; /* Number of sectors that came in since the last turn */ in drbd_rs_number_requests() local553 sect_in = atomic_xchg(&device->rs_sect_in, 0); in drbd_rs_number_requests()554 device->rs_in_flight -= sect_in; in drbd_rs_number_requests()559 number = drbd_rs_controller(device, sect_in) >> (BM_BLOCK_SHIFT - 9); in drbd_rs_number_requests()