函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called if REQ_F_LINK is set, and we fail the head request

函数原型:static void io_fail_links(struct io_kiocb *req)

返回类型:void

参数:

类型参数名称
struct io_kiocb *req
1026  ctx等于ctx
1029  spin_lock_irqsave( & completion_lock, flags)
1031  当非链表为空循环
1032  link等于list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.( & link_list, structio_kiocb, link_list)
1035  删除链表项并重新初始化
1036  _uring_fail_link - called before failing a linked request*@req: request, which links were cancelled*@link: cancelled link* Allows to track linked requests cancellation, to see not only that some work* was cancelled, but also which request was the reason.
1038  如果flags按位与has linked timeout opcode恒等于IORING_OP_LINK_TIMEOUT
1041  否则
1045  flags与等于has linked timeout 的反
1048  io_commit_cqring(ctx)
1049  spin_unlock_irqrestore( & completion_lock, flags)
1050  io_cqring_ev_posted(ctx)
调用者
名称描述
io_req_find_next