Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:io_async_find_and_cancel

Proto:static void io_async_find_and_cancel(struct io_ring_ctx *ctx, struct io_kiocb *req, __u64 sqe_addr, struct io_kiocb **nxt, int success_ret)

Type:void

Parameter:

TypeParameterName
struct io_ring_ctx *ctx
struct io_kiocb *req
__u64sqe_addr
struct io_kiocb **nxt
intsuccess_ret
3046  ret = io_async_cancel_one(ctx, (void * )(unsignedlong)sqe_addr)
3047  If ret != -ENOENT Then
3048  spin_lock_irqsave( & completion_lock, flags)
3049  Go to done
3052  spin_lock_irqsave( & completion_lock, flags)
3053  ret = io_timeout_cancel(ctx, sqe_addr)
3054  If ret != -ENOENT Then Go to done
3056  ret = io_poll_cancel(ctx, sqe_addr)
3057  done :
3058  If Not ret Then ret = success_ret
3060  io_cqring_fill_event(req, ret)
3061  io_commit_cqring(ctx)
3062  spin_unlock_irqrestore( & completion_lock, flags)
3063  io_cqring_ev_posted(ctx)
3065  If ret < 0 Then req_set_fail_links(req)
3067  Drop reference to request, return next in chain (if there is one) if this* was the last reference to this request.
Caller
NameDescribe
io_async_cancel
io_link_timeout_fn