From d6d343bb87e205846f08932dd7219f39eda8d28b Mon Sep 17 00:00:00 2001 From: Rob Norris Date: Tue, 8 Aug 2023 12:05:47 +0200 Subject: [PATCH] Revert debug code from bio-seg-limit This patch reverts parts of bf08bc108dce6f1ecd0820c8b5a67b6fb7962c7e. --- module/os/linux/zfs/abd_os.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/module/os/linux/zfs/abd_os.c b/module/os/linux/zfs/abd_os.c index 3774a9c3de..254df32410 100644 --- a/module/os/linux/zfs/abd_os.c +++ b/module/os/linux/zfs/abd_os.c @@ -1061,10 +1061,8 @@ bio_map(struct bio *bio, void *buf_ptr, unsigned int bio_size) * This is a split page, so we need to ensure that we * have room for the tail within this bio. */ - if ((i + 1) == bio->bi_max_vecs) { - cmn_err(CE_NOTE, "bio_map: avoided misalignment! bio %p", bio); + if ((i + 1) == bio->bi_max_vecs) break; - } /* Take up to the end of the page */ size = PAGE_SIZE - offset; @@ -1180,10 +1178,8 @@ abd_bio_map_off(struct bio *bio, abd_t *abd, * This is a split page, so we need to ensure that we * have room for the tail within this bio. */ - if ((i + 1) == bio->bi_max_vecs) { - cmn_err(CE_NOTE, "abd_bio_map_off: avoided misalignment! bio %p", bio); + if ((i + 1) == bio->bi_max_vecs) break; - } /* Take up to the end of the page */ len = PAGE_SIZE - pgoff;