Commit 3849de23 authored by David Wei's avatar David Wei Committed by Akilesh Kailash
Browse files

BACKPORT: io_uring: add io_local_work_pending()



In preparation for adding a new llist of tw to retry due to hitting the
tw limit, add a helper io_local_work_pending(). This function returns
true if there is any local tw pending. For now it only checks
ctx->work_llist.

Bug: 450109138
Bug: 297114355
(cherry picked from commit 40cfe553)
[akailash@: Fix merge conflict in io_has_work function ]
Signed-off-by: default avatarDavid Wei <dw@davidwei.uk>
Reviewed-by: default avatarPavel Begunkov <asml.silence@gmail.com>
Link: https://lore.kernel.org/r/20241120221452.3762588-2-dw@davidwei.uk


Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
Cherrypick-From: https://android-review.googlesource.com/q/commit:b5ae38dc2ff6362814a45a222f00beee5fc1f04f


Merged-In: I701e7df01072051be1c2f0967f056cc8a2923e99
Change-Id: I701e7df01072051be1c2f0967f056cc8a2923e99
Signed-off-by: default avatarAkilesh Kailash <akailash@google.com>
parent e9338564
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment