Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:block\blk-wbt.c Create Date:2022-07-28 18:06:46
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:wbt_rqw_done

Proto:static void wbt_rqw_done(struct rq_wb *rwb, struct rq_wait *rqw, enum wbt_flags wb_acct)

Type:void

Parameter:

TypeParameterName
struct rq_wb *rwb
struct rq_wait *rqw
enum wbt_flagswb_acct
132  inflight = atomic_dec_return( & inflight)
138  If Value for the false possibility is greater at compile time(!rwb_enabled(rwb)) Then
139  rwb_wake_all(rwb)
140  Return
148  If wb_acct & discard Then limit = background writeback
150  Else if wc && Not If a task was rate throttled in balance_dirty_pages() within the last* second or so, use that to indicate a higher cleaning rate. Then limit = 0
152  Else limit = normal writeback
158  If inflight && inflight >= limit Then Return
161  If 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. Then
162  diff = limit - inflight
164  If Not inflight || diff >= background writeback / 2 Then wake_up_all( & wait)
Caller
NameDescribe
__wbt_done
wbt_cleanup_cb