Function report |
Source Code:block\blk-cgroup.c |
Create Date:2022-07-28 17:40:54 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This is called when we want to actually walk up the hierarchy and check to* see if we need to throttle, and then actually throttle if there is some* accumulated delay. This should only be called upon return to user space so
Proto:static void blkcg_maybe_throttle_blkg(struct blkcg_gq *blkg, bool use_memdelay)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct blkcg_gq * | blkg | |
bool | use_memdelay |
1571 | delay_nsec = 0 |
1575 | If atomic_read( & use_delay) Then |
1583 | If Not delay_nsec Then Return |
1593 | delay_nsec = min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u64, delay_nsec, 250 * NSEC_PER_MSEC) |
1598 | exp = Add a ktime_t variable and a scalar nanosecond value.* res = kt + nsval:(now, delay_nsec) |
1599 | tok = io_schedule_prepare() |
1600 | Do |
1604 | When Not fatal_signal_pending(current process) cycle |
1605 | io_schedule_finish(tok) |
Name | Describe |
---|---|
blkcg_maybe_throttle_current | lkcg_maybe_throttle_current - throttle the current task if it has been marked* This is only called if we've been marked with set_notify_resume() |
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 |