Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\io-wq.c Create Date:2022-07-28 20:22:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static void __io_worker_busy(struct io_wqe *wqe, struct io_worker *worker, struct io_wq_work *work)__must_hold(wqe->lock)

Type:void

Parameter:

TypeParameterName
struct io_wqe *wqe
struct io_worker *worker
struct io_wq_work *work
332  If flags & IO_WORKER_F_FREE Then
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  If worker_bound != work_bound Then
344  io_wqe_dec_running(wqe, worker)
345  If work_bound Then
347  nr_workers--
348  nr_workers++
349  atomic_dec( & processes)
350  Else
352  nr_workers++
353  nr_workers--
354  atomic_inc( & processes)
356  io_wqe_inc_running(wqe, worker)
Caller
NameDescribe
io_worker_handle_work