---
name: "inode_dio_wait"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/inode_dio_wait"
---

# inode\_dio\_wait(9)

wait for outstanding DIO requests to finish

## NAME

inode\_dio\_wait - wait for outstanding DIO requests to finish

## SYNOPSIS

**void inode\_dio\_wait(struct inode \*** *inode***);**

## ARGUMENTS

*inode*

inode to wait for

## DESCRIPTION

Waits for all pending direct I/O requests to finish so that we can proceed with a truncate or equivalent operation.

Must be called under a lock that serializes taking new references to i\_dio\_count, usually by inode-\>i\_mutex.

## COPYRIGHT
