Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called if REQ_F_LINK is set, and we fail the head request

Proto:static void io_fail_links(struct io_kiocb *req)

Type:void

Parameter:

TypeParameterName
struct io_kiocb *req
1026  ctx = ctx
1029  spin_lock_irqsave( & completion_lock, flags)
1031  When Not list_empty - tests whether a list is empty*@head: the list to test. cycle
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  list_del_init - deletes entry from list and reinitialize it.*@entry: the element to delete from the list.
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.
1041  Else
1045  flags &= ~has linked timeout
1048  io_commit_cqring(ctx)
1049  spin_unlock_irqrestore( & completion_lock, flags)
1050  io_cqring_ev_posted(ctx)
Caller
NameDescribe
io_req_find_next