函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io-wq.c Create Date:2022-07-29 10:55:37
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Worker will start processing some work. Move it to the busy list, if* it's currently on the freelist

函数原型:static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker, struct io_wq_work *work)__must_hold(wqe->lock)

返回类型:void

参数:

类型参数名称
struct io_wqe *wqe
struct io_worker *worker
struct io_wq_work *work
332  如果flags按位与IO_WORKER_F_FREE
333  flags与等于IO_WORKER_F_FREE的反
334  hlist_nulls_del_init_rcu - deletes entry from hash list with re-initialization*@n: the element to delete from the hash list
341  worker_bound等于flags按位与IO_WORKER_F_BOUND的值不等于0
342  work_bound等于flags按位与IO_WQ_WORK_UNBOUND的值恒等于0
343  如果worker_bound不等于work_bound
344  io_wqe_dec_running(wqe, worker)
345  如果work_bound
346  flags或等于IO_WORKER_F_BOUND
347  nr_workers自减
348  nr_workers自加
349  atomic_dec( & processes)
350  否则
351  flags与等于IO_WORKER_F_BOUND的反
352  nr_workers自加
353  nr_workers自减
354  atomic_inc( & processes)
356  io_wqe_inc_running(wqe, worker)
调用者
名称描述
io_worker_handle_work