函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-wbt.c Create Date:2022-07-27 19:42:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:wbt_rqw_done

函数原型:static void wbt_rqw_done(struct rq_wb *rwb, struct rq_wait *rqw, enum wbt_flags wb_acct)

返回类型:void

参数:

类型参数名称
struct rq_wb *rwb
struct rq_wait *rqw
enum wbt_flagswb_acct
132  inflight等于atomic_dec_return( & inflight)
138  如果此条件成立可能性小(为编译器优化)(!rwb_enabled(rwb))则
139  rwb_wake_all(rwb)
140  返回
148  如果wb_acct按位与 discard limit等于 background writeback
150  否则如果wc且非If a task was rate throttled in balance_dirty_pages() within the last* second or so, use that to indicate a higher cleaning rate.limit等于0
152  否则limit等于 normal writeback
158  如果inflightinflight大于等于limit则返回
161  如果wq_has_sleeper - check if there are any waiting processes*@wq_head: wait queue head* Returns true if wq_head has waiting processes* Please refer to the comment for waitqueue_active.
162  diff等于limitinflight
164  如果非inflightdiff大于等于 background writeback 除2则wake_up_all( & wait)
调用者
名称描述
__wbt_done
wbt_cleanup_cb