Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Enqueue work, hashed by some key. Work items that hash to the same value* will not be done in parallel. Used to limit concurrent writes, generally* hashed by inode.

Proto:void io_wq_enqueue_hashed(struct io_wq *wq, struct io_wq_work *work, void *val)

Type:void

Parameter:

TypeParameterName
struct io_wq *wq
struct io_wq_work *work
void *val
776  wqe = wqes[Returns the number of the current Node. ]
780  bit = hash_ptr(val, IO_WQ_HASH_ORDER)
781  flags |= IO_WQ_WORK_HASHED | bit << IO_WQ_HASH_SHIFT
782  io_wqe_enqueue(wqe, work)