Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_wq_submit_work

Proto:static void io_wq_submit_work(struct io_wq_work **workptr)

Type:void

Parameter:

TypeParameterName
struct io_wq_work **workptr
3326  work = workptr
3327  req = container_of - cast a member of a structure out to the containing structure*@ptr: the pointer to the member.*@type: the type of the container struct this is embedded in.*@member: the name of the member within the struct.(work, structio_kiocb, work)
3328  struct io_kiocb * nxt = NULL
3329  ret = 0
3331  If flags & IO_WQ_WORK_CANCEL Then ret = -ECANCELED
3334  If Not ret Then
3335  has_user = (flags & IO_WQ_WORK_HAS_MM) != 0
3336  in_async = true
3337  Do
3338  ret = io_issue_sqe(req, NULL, & nxt, false)
3344  If ret != -EAGAIN Then Break
3346  cond_resched()
3347  When 1 cycle
3351  io_put_req(req)
3353  If ret Then
3354  req_set_fail_links(req)
3355  io_cqring_add_event(req, ret)
3356  io_put_req(req)
3360  If Not ret && nxt Then io_wq_assign_next(workptr, nxt)