FAILED: patch "[PATCH] io_uring: break iopolling on signal" failed to apply to 5.4-stable tree
Subsystems (2)
[email protected]
maintainerThe patch below does not apply to the 5.4-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
To reproduce the conflict and resubmit, you may use the following commands:
git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-5.4.y
git checkout FETCH_HEAD
git cherry-pick -x dc314886cb3d0e4ab2858003e8de2917f8a3ccbd
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<[email protected]>' --in-reply-to '2023090939-bunkmate-clutch-4fc1@gregkh' --subject-prefix 'PATCH 5.4.y' HEAD^..
Possible dependencies:
dc314886cb3d ("io_uring: break iopolling on signal")ed29b0b4fd83 ("io_uring: move to separate directory")5ba3c874eb8a ("io_uring: make io_do_iopoll return number of reqs")87a115fb715b ("io_uring: force_nonspin")b688f11e86c9 ("io_uring: utilize the io batching infrastructure for more efficient polled IO") 5a72e899ceb4 ("block: add a struct io_comp_batch argument to fops->iopoll()") 013a7f954381 ("block: provide helpers for rq_list manipulation")afd7de03c526 ("block: remove some blk_mq_hw_ctx debugfs entries")3e08773c3841 ("block: switch polling to be bio based")6ce913fe3eee ("block: rename REQ_HIPRI to REQ_POLLED")d729cf9acb93 ("io_uring: don't sleep when polling for I/O")ef99b2d37666 ("block: replace the spin argument to blk_iopoll with a flags argument") 28a1ae6b9dab ("blk-mq: remove blk_qc_t_valid")efbabbe121f9 ("blk-mq: remove blk_qc_t_to_tag and blk_qc_t_is_internal") c6699d6fe0ff ("blk-mq: factor out a "classic" poll helper")f70299f0d58e ("blk-mq: factor out a blk_qc_to_hctx helper")71fc3f5e2c00 ("block: don't try to poll multi-bio I/Os in __blkdev_direct_IO") 4c928904ff77 ("block: move CONFIG_BLOCK guard to top Makefile")349302da8352 ("block: improve batched tag allocation")0f38d7664615 ("blk-mq: cleanup blk_mq_submit_bio")
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From dc314886cb3d0e4ab2858003e8de2917f8a3ccbd Mon Sep 17 00:00:00 2001
From: Pavel Begunkov <[email protected]>
Date: Wed, 9 Aug 2023 16:20:21 +0100
Subject: [PATCH] io_uring: break iopolling on signal
Don't keep spinning iopoll with a signal set. It'll eventually return back, e.g. by virtue of need_resched(), but it's not a nice user experience.
io_uring/io_uring.c +3 -0
@@ -1673,6 +1673,9 @@ static int io_iopoll_check(struct io_ring_ctx *ctx, long min)break ; nr_events += ret; ret =0 ; + +if (task_sigpending (current)) +return -EINTR ; }while (nr_events < min && !need_resched ());return ret;
Jens Axboe
maintainerQuoted 5 lines · On 9/9/23 6:52 AM, [email protected] wrote:
The patch below does not apply to the 5.4-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.
This isn't needed for the 5.4-stable tree.
Signature · 1 line
Jens Axboe
Greg KH
maintainerQuoted 8 lines · Jens Axboe
Quoted 5 lines · On 9/9/23 6:52 AM, [email protected] wrote:
The patch below does not apply to the 5.4-stable tree.
If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to <[email protected]>.This isn't needed for the 5.4-stable tree.
Ah, thanks for letting me know, the "Fixes:" tag pointed at a commit in 5.1, which is what triggered this email.
greg k-h