Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\inode.c Create Date:2022-07-28 20:08:00
Last Modify:2020-03-18 19:19:59 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Direct i/o helper functions

Proto:static void __inode_dio_wait(struct inode *inode)

Type:void

Parameter:

TypeParameterName
struct inode *inode
2097  wq = bit_waitqueue( & Misc , Never set. Only used as a key for wait_on_bit())
2100  Do
2101  Note: we use "set_current_state()" _after_ the wait-queue add,* because we need a memory barrier there on SMP, so that any* wake-function that tests for the wait-queue being active* will be guaranteed to see waitqueue addition _or_ subsequent
2102  If atomic_read( & i_dio_count) Then schedule()
2104  When atomic_read( & i_dio_count) cycle
2105  sh_wait - clean up after waiting in a queue*@wq_head: waitqueue waited on*@wq_entry: wait descriptor* Sets current thread back to running state and removes* the wait descriptor from the given waitqueue if still* queued.
Caller
NameDescribe
inode_dio_waitde_dio_wait - wait for outstanding DIO requests to finish*@inode: inode to wait for* Waits for all pending direct I/O requests to finish so that we can* proceed with a truncate or equivalent operation