Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dio_bio_complete

Proto:static blk_status_t dio_bio_complete(struct dio *dio, struct bio *bio)

Type:blk_status_t

Parameter:

TypeParameterName
struct dio *dio
struct bio *bio
521  err = bi_status
522  should_dirty = op == REQ_OP_READ && pages should be dirtied
524  If err Then
525  If err == BLK_STS_AGAIN && bottom bits req flags, * top bits REQ_OP. Use * accessors. & REQ_NOWAIT Then IO error in completion path = -EAGAIN
527  Else IO error in completion path = -EIO
531  If s IO async ? && should_dirty Then
532  bio_check_pages_dirty(bio)
533  Else
534  bio_release_pages(bio, should_dirty)
535  bio_put(bio)
537  Return err
Caller
NameDescribe
dio_bio_end_aioAsynchronous IO callback.
dio_await_completionWait on and process all in-flight BIOs
dio_bio_reapA really large O_DIRECT read or write can generate a lot of BIOs. So* to keep the memory consumption sane we periodically reap any completed BIOs* during the BIO generation phase.* This also helps to limit the peak amount of pinned userspace memory.