Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:heck_flush_dependency - check for flush dependency sanity*@target_wq: workqueue being flushed*@target_work: work item being flushed (NULL for workqueue flushes)* %current is trying to flush the whole @target_wq or @target_work on it

Proto:static void check_flush_dependency(struct workqueue_struct *target_wq, struct work_struct *target_work)

Type:void

Parameter:

TypeParameterName
struct workqueue_struct *target_wq
struct work_struct *target_work
2591  work_func_t target_func = target_work ? func : NULL
2594  If hot fields used during command issue, aligned to cacheline & WQ_MEM_RECLAIM Then Return
2597  worker = rrent_wq_worker - return struct worker if %current is a workqueue worker
2599  WARN_ONCE(flags & Allocating memory , "workqueue: PF_MEMALLOC task %d(%s) is flushing !WQ_MEM_RECLAIM %s:%ps", pid, comm, I: workqueue name , target_func)
2602  WARN_ONCE(worker && ((flags & (WQ_MEM_RECLAIM | __WQ_LEGACY)) == WQ_MEM_RECLAIM), "workqueue: WQ_MEM_RECLAIM %s:%ps is flushing !WQ_MEM_RECLAIM %s:%ps", name, L: current_work's fn , I: workqueue name , target_func)
Caller
NameDescribe
flush_workqueuelush_workqueue - ensure that any scheduled work has run to completion.*@wq: workqueue to flush* This function sleeps until all work items which were queued on entry* have finished execution, but it is not livelocked by new incoming ones.
start_flush_work