diff for duplicates of <20251021195038.635577649@linuxfoundation.org> diff --git a/a/1.txt b/N1/1.txt index 7f452f6..0548fb2 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -1,3 +1,5 @@ +From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> + 6.12-stable review patch. If anyone has any objections, please let me know. ------------------ @@ -17,10 +19,6 @@ Signed-off-by: Jens Axboe <axboe@kernel.dk> Stable-dep-of: 22f166218f73 ("md: fix mssing blktrace bio split events") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> ---- - drivers/md/raid0.c | 12 ++++++++++++ - 1 file changed, 12 insertions(+) - --- a/drivers/md/raid0.c +++ b/drivers/md/raid0.c @@ -464,6 +464,12 @@ static void raid0_handle_discard(struct @@ -33,19 +31,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> + bio_endio(bio); + return; + } - bio_chain(split, bio); - submit_bio_noacct(bio); - bio = split; -@@ -606,6 +612,12 @@ static bool raid0_make_request(struct md - if (sectors < bio_sectors(bio)) { - struct bio *split = bio_split(bio, sectors, GFP_NOIO, - &mddev->bio_set); -+ -+ if (IS_ERR(split)) { -+ bio->bi_status = errno_to_blk_status(PTR_ERR(split)); -+ bio_endio(bio); -+ return true; -+ } - bio_chain(split, bio); - raid0_map_submit_bio(mddev, bio); - bio = split; + +The version of bio_split return NULL or valid pointer, so we need adapt the +check to if (IS_ERR_OR_NULL(split)) for all the 3 commits about Handle +bio_split() errors for md/raidx. diff --git a/a/content_digest b/N1/content_digest index 739ff9c..18c8748 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,17 +1,19 @@ "ref\020251021195035.953989698@linuxfoundation.org\0" - "From\0Greg Kroah-Hartman <gregkh@linuxfoundation.org>\0" + "From\0Jack Wang <jinpu.wang@ionos.com>\0" "Subject\0[PATCH 6.12 111/136] md/raid0: Handle bio_split() errors\0" - "Date\0Tue, 21 Oct 2025 21:51:39 +0200\0" - "To\0stable@vger.kernel.org\0" - "Cc\0Greg Kroah-Hartman <gregkh@linuxfoundation.org>" + "Date\0Wed, 22 Oct 2025 09:53:07 +0200\0" + "To\0gregkh@linuxfoundation.org" + " stable@vger.kernel.org\0" + "Cc\0axboe@kernel.dk" + hare@suse.de + john.g.garry@oracle.com patches@lists.linux.dev - Yu Kuai <yukuai3@huawei.com> - Hannes Reinecke <hare@suse.de> - John Garry <john.g.garry@oracle.com> - Jens Axboe <axboe@kernel.dk> - " Sasha Levin <sashal@kernel.org>\0" + sashal@kernel.org + " yukuai3@huawei.com\0" "\00:1\0" "b\0" + "From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\n" + "\n" "6.12-stable review patch. If anyone has any objections, please let me know.\n" "\n" "------------------\n" @@ -31,10 +33,6 @@ "Stable-dep-of: 22f166218f73 (\"md: fix mssing blktrace bio split events\")\n" "Signed-off-by: Sasha Levin <sashal@kernel.org>\n" "Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>\n" - "---\n" - " drivers/md/raid0.c | 12 ++++++++++++\n" - " 1 file changed, 12 insertions(+)\n" - "\n" "--- a/drivers/md/raid0.c\n" "+++ b/drivers/md/raid0.c\n" "@@ -464,6 +464,12 @@ static void raid0_handle_discard(struct\n" @@ -47,21 +45,9 @@ "+\t\t\tbio_endio(bio);\n" "+\t\t\treturn;\n" "+\t\t}\n" - " \t\tbio_chain(split, bio);\n" - " \t\tsubmit_bio_noacct(bio);\n" - " \t\tbio = split;\n" - "@@ -606,6 +612,12 @@ static bool raid0_make_request(struct md\n" - " \tif (sectors < bio_sectors(bio)) {\n" - " \t\tstruct bio *split = bio_split(bio, sectors, GFP_NOIO,\n" - " \t\t\t\t\t &mddev->bio_set);\n" - "+\n" - "+\t\tif (IS_ERR(split)) {\n" - "+\t\t\tbio->bi_status = errno_to_blk_status(PTR_ERR(split));\n" - "+\t\t\tbio_endio(bio);\n" - "+\t\t\treturn true;\n" - "+\t\t}\n" - " \t\tbio_chain(split, bio);\n" - " \t\traid0_map_submit_bio(mddev, bio);\n" - " \t\tbio = split;" + "\n" + "The version of bio_split return NULL or valid pointer, so we need adapt the\n" + "check to if (IS_ERR_OR_NULL(split)) for all the 3 commits about Handle\n" + bio_split() errors for md/raidx. -ce82712a40fb4fe26ae11151731a07809e3c93ffb77588f4a7ff4fb709332b13 +82d8f82019f860ec439a77df4363b2390cd91a8d0630f2e06bfbefedccebd5ee
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.