Function report |
Source Code:block\blk-iolatency.c |
Create Date:2022-07-28 17:45:22 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Check our parent and see if the scale cookie has changed.
Proto:static void check_scale_change(struct iolatency_grp *iolat)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct iolatency_grp * | iolat |
396 | our_cookie = atomic_read( & scale_cookie) |
399 | direction = 0 |
401 | If ( all non-root blkcg_gq's are guaranteed to have access to parent == NULL) Then Return |
405 | If Not parent Then Return |
412 | If cur_cookie < our_cookie Then direction = -1 |
414 | Else if cur_cookie > our_cookie Then direction = 1 |
416 | Else Return |
419 | old = atomic_cmpxchg( & scale_cookie, our_cookie, cur_cookie) |
422 | If old != our_cookie Then Return |
425 | If direction < 0 && min_lat_nsec Then |
428 | If Not scale_lat || min_lat_nsec <= scale_lat Then Return |
439 | If Our current number of IO's for the last summation. <= samples_thresh Then Return |
445 | blkcg_use_delay(lat_to_blkg(iolat)) |
446 | Return |
450 | If cur_cookie == DEFAULT_SCALE_COOKIE Then |
453 | wake_up_all( & wait) |
454 | Return |
Name | Describe |
---|---|
blkcg_iolatency_throttle |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |