diff options
author | 2019-07-16 13:56:42 -0600 | |
---|---|---|
committer | 2019-07-21 21:46:29 -0600 | |
commit | 6a43074e2f461c2c49a607f9f6f5218d53f97d1e (patch) | |
tree | e1781f5c8c89749b67b76157dcc8f57c75a581f1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | blk-mq: allow REQ_NOWAIT to return an error inline (diff) | |
download | wireguard-linux-6a43074e2f461c2c49a607f9f6f5218d53f97d1e.tar.xz wireguard-linux-6a43074e2f461c2c49a607f9f6f5218d53f97d1e.zip |
block: properly handle IOCB_NOWAIT for async O_DIRECT IO
A caller is supposed to pass in REQ_NOWAIT if we can't block for any
given operation, but O_DIRECT for block devices just ignore this. Hence
we'll block for various resource shortages on the block layer side,
like having to wait for requests.
Use the new REQ_NOWAIT_INLINE to ask for this error to be returned
inline, so we can handle it appropriately and return -EAGAIN to the
caller.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions