Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\backing-dev.c Create Date:2022-07-28 14:24:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:clear_wb_congested

Proto:void clear_wb_congested(struct bdi_writeback_congested *congested, int sync)

Type:void

Parameter:

TypeParameterName
struct bdi_writeback_congested *congested
intsync
1054  wqh = congestion_wqh[sync]
1057  bit = If sync Then The sync queue is getting full Else The async (write) queue is getting full
1058  If st_and_clear_bit - Clear a bit and return its old value*@nr: Bit to clear*@addr: Address to count from* This is an atomic fully-ordered operation (implied full memory barrier). Then atomic_dec( & nr_wb_congested[sync])
1060  smp_mb__after_atomic()
1061  If waitqueue_active -- locklessly test for waiters on the queue*@wq_head: the waitqueue to test for waiters* returns true if the wait list is not empty* NOTE: this function is lockless and requires care, incorrect usage _will_ Then wake_up(wqh)
Caller
NameDescribe
clear_bdi_congested