diff options
| author | Mark Brown <broonie@kernel.org> | 2026-01-20 20:58:35 +0300 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-01-20 20:58:35 +0300 |
| commit | e73eb6a73c209e63f5f239337bda4b938d75a1f7 (patch) | |
| tree | 29adbbdadc04337708d392b840ba4bb5ce5a9350 /io_uring | |
| parent | 8f7745fcb443f9223ccfb17e02cbe06e80b72d78 (diff) | |
| parent | c3608162a95a259c669cf9fdccf900782fa8d902 (diff) | |
| download | linux-e73eb6a73c209e63f5f239337bda4b938d75a1f7.tar.xz | |
spi: xilinx: make IRQs optional
Merge series from Abdurrahman Hussain <abdurrahman@nexthop.ai>:
Additionally, make interrupts optional to allow the driver to fall back
to its existing polling mode on systems where interrupts are either missing
or broken.
Diffstat (limited to 'io_uring')
| -rw-r--r-- | io_uring/io_uring.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/io_uring/io_uring.c b/io_uring/io_uring.c index 87a87396e940..b7a077c11c21 100644 --- a/io_uring/io_uring.c +++ b/io_uring/io_uring.c @@ -3003,12 +3003,12 @@ static __cold void io_ring_exit_work(struct work_struct *work) mutex_unlock(&ctx->uring_lock); } - if (ctx->flags & IORING_SETUP_DEFER_TASKRUN) - io_move_task_work_from_local(ctx); - /* The SQPOLL thread never reaches this path */ - while (io_uring_try_cancel_requests(ctx, NULL, true, false)) + do { + if (ctx->flags & IORING_SETUP_DEFER_TASKRUN) + io_move_task_work_from_local(ctx); cond_resched(); + } while (io_uring_try_cancel_requests(ctx, NULL, true, false)); if (ctx->sq_data) { struct io_sq_data *sqd = ctx->sq_data; |
