Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static void dio_bio_end_io(struct bio *bio)

Type:void

Parameter:

TypeParameterName
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  If --direct_io_worker() and bios == 1 && waiting task (NULL if none) Then wake_up_process - Wake up a specific process*@p: The process to be woken up.* Attempt to wake up the nominated process and move it to the set of runnable* processes.* Return: 1 if the process was woken up, 0 if it was already running.
386  spin_unlock_irqrestore( & protects BIO fields below , flags)
Caller
NameDescribe
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