Searched refs:sect_in (Results 1 - 2 of 2) sorted by relevance
/kernel/linux/linux-5.10/drivers/block/drbd/ |
H A D | drbd_worker.c | 501 static int drbd_rs_controller(struct drbd_device *device, unsigned int sect_in) in drbd_rs_controller() argument 518 if (device->rs_in_flight + sect_in == 0) { /* At start of resync */ in drbd_rs_controller() 522 sect_in * dc->c_delay_target * HZ / (SLEEP_TIME * 10); in drbd_rs_controller() 536 req_sect = sect_in + curr_corr; in drbd_rs_controller() 546 sect_in, device->rs_in_flight, want, correction, in drbd_rs_controller() 555 unsigned int sect_in; /* Number of sectors that came in since the last turn */ in drbd_rs_number_requests() local 558 sect_in = atomic_xchg(&device->rs_sect_in, 0); in drbd_rs_number_requests() 559 device->rs_in_flight -= sect_in; in drbd_rs_number_requests() 564 number = drbd_rs_controller(device, sect_in) >> (BM_BLOCK_SHIFT - 9); in drbd_rs_number_requests()
|
/kernel/linux/linux-6.6/drivers/block/drbd/ |
H A D | drbd_worker.c | 496 static int drbd_rs_controller(struct drbd_peer_device *peer_device, unsigned int sect_in) in drbd_rs_controller() argument 514 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() 542 sect_in, device->rs_in_flight, want, correction, in drbd_rs_controller() 552 unsigned int sect_in; /* Number of sectors that came in since the last turn */ in drbd_rs_number_requests() local 555 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()
|
Completed in 6 milliseconds