函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\direct-io.c Create Date:2022-07-29 10:46:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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

函数原型:int sb_init_dio_done_wq(struct super_block *sb)

返回类型:int

参数:

类型参数名称
struct super_block *sb
596  wq等于alloc_workqueue("dio/%s", WQ_MEM_RECLAIM, 0, s_id)
599  如果非wq则返回:负ENOMEM
604  old等于cmpxchg( & s_dio_done_wq, NULL, wq)
606  如果olddestroy_workqueue - safely terminate a workqueue*@wq: target workqueue* Safely destroy a workqueue. All work currently pending will be done first.
608  返回:0
调用者
名称描述
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