函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Asynchronous IO callback.

函数原型:static void dio_bio_end_aio(struct bio *bio)

返回类型:void

参数:

类型参数名称
struct bio *bio
332  dio等于bi_private
335  bool defer_completion = false
338  dio_bio_complete(dio, bio)
340  spin_lock_irqsave( & protects BIO fields below , flags)
341  remaining等于direct_io_worker() and bios 先自减
342  如果remaining恒等于1且waiting task (NULL if none) 唤醒中断线程
344  spin_unlock_irqrestore( & protects BIO fields below , flags)
346  如果remaining恒等于0则
355  如果IO result defer_completion等于defer AIO completion to workqueue? op恒等于REQ_OP_WRITEnrpages
359  如果defer_completion
363  否则
调用者
名称描述
dio_end_iodio_end_io - handle the end io action for the given bio*@bio: The direct io bio thats being completed* This is meant to be called by any filesystem that uses their own dio_submit_t* so that the DIO specific endio actions are dealt with after the filesystem