Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Create workqueue for deferred direct IO completions. We allocate the* workqueue when it's first needed. This avoids creating workqueue for* filesystems that don't need it and also allows us to create the workqueue

Proto:int sb_init_dio_done_wq(struct super_block *sb)

Type:int

Parameter:

TypeParameterName
struct super_block *sb
596  wq = alloc_workqueue("dio/%s", WQ_MEM_RECLAIM, 0, s_id)
599  If Not wq Then Return -ENOMEM
604  old = cmpxchg( & s_dio_done_wq, NULL, wq)
606  If old Then destroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.
608  Return 0
Caller
NameDescribe
dio_set_defer_completion
do_blockdev_direct_IOThis is a library function for use by filesystem drivers
iomap_dio_rwmap_dio_rw() always completes O_[D]SYNC writes regardless of whether the IO* is being issued as AIO or not. This allows us to optimise pure data writes* to use REQ_FUA rather than requiring generic_write_sync() to issue a* REQ_FLUSH post write