Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:padata_reorder

Proto:static void padata_reorder(struct parallel_data *pd)

Type:void

Parameter:

TypeParameterName
struct parallel_data *pd
216  pinst = pinst
232  If Not spin_trylock_bh( & lock) Then Return
235  When 1 cycle
236  padata = padata_find_next - Find the next object that needs serialization
243  If Not padata Then Break
246  cb_cpu = cb_cpu
247  squeue = per_cpu_ptr(squeue, cb_cpu)
249  spin_lock( & lock)
250  list_add_tail - add a new entry*@new: new entry to be added*@head: list head to add it before* Insert a new entry before the specified head.* This is useful for implementing queues.
251  spin_unlock( & lock)
253  queue_work_on - queue work on specific cpu*@cpu: CPU number to execute work on*@wq: workqueue to use*@work: work to queue* We queue the work to a specific CPU, the caller must ensure it* can't go away.
256  spin_unlock_bh( & lock)
266  smp_mb()
268  next_queue = per_cpu_ptr(pqueue, cpu)
269  If Not list_empty - tests whether a list is empty*@head: the list to test. && padata_find_next - Find the next object that needs serialization Then queue_work - queue work on a workqueue*@wq: workqueue to use*@work: work to queue* Returns %false if @work was already on a queue, %true otherwise.* We queue the work to the CPU on which it was submitted, but if the CPU dies
Caller
NameDescribe
invoke_padata_reorder
padata_do_serialpadata_do_serial - padata serialization function*@padata: object to be serialized.* padata_do_serial must be called for every parallelized object.* The serialization callback function will run with BHs off.