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:Asynchronous IO callback.

Proto:static void dio_bio_end_aio(struct bio *bio)

Type:void

Parameter:

TypeParameterName
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  If remaining == 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.
344  spin_unlock_irqrestore( & protects BIO fields below , flags)
346  If remaining == 0 Then
355  If IO result Then defer_completion = defer AIO completion to workqueue? || op == REQ_OP_WRITE && nrpages
359  If defer_completion Then
363  Else
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