Function report |
Source Code:mm\backing-dev.c |
Create Date:2022-07-28 14:24:37 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:wait_iff_congested - Conditionally wait for a backing_dev to become uncongested or a pgdat to complete writes*@sync: SYNC or ASYNC IO*@timeout: timeout in jiffies* In the event of a congested backing_dev (any backing_dev) this waits* for up to @timeout
Proto:long wait_iff_congested(int sync, long timeout)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | sync | |
| long | timeout |
| 1120 | DEFINE_WAIT(wait) |
| 1121 | wqh = congestion_wqh[sync] |
| 1127 | If atomic_read( & nr_wb_congested[sync]) == 0 Then |
| 1128 | cond_resched() |
| 1135 | Go to out |
| 1140 | ret = This task is about to go to sleep on IO. Increment rq->nr_iowait so* that process accounting knows that this is a task in IO wait state. |
| 1143 | out : |
| 1144 | trace_writeback_wait_iff_congested(jiffies_to_usecs(timeout), jiffies_to_usecs(jiffies - start)) |
| 1147 | Return ret |
| Name | Describe |
|---|---|
| shrink_node |
| 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 |