函数逻辑报告

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

函数名称:The BIO completion handler simply queues the BIO up for the process-context* handler.* During I/O bi_private points at the dio. After I/O, bi_private is used to* implement a singly-linked list of completed BIOs, at dio->bio_list.

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

返回类型:void

参数:

类型参数名称
struct bio *bio
378  dio等于bi_private
381  spin_lock_irqsave( & protects BIO fields below , flags)
382  bi_private等于singly linked via bi_private
383  singly linked via bi_private 等于bio
384  如果direct_io_worker() and bios 先自减恒等于1且waiting task (NULL if none) 唤醒中断线程
386  spin_unlock_irqrestore( & protects BIO fields below , flags)
调用者
名称描述
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