Message ID | 20230502101934.24901-15-johannes.thumshirn@wdc.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7B9F6C77B73 for <linux-mm@archiver.kernel.org>; Tue, 2 May 2023 17:39:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 0B6816B007D; Tue, 2 May 2023 13:39:20 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 06785900002; Tue, 2 May 2023 13:39:20 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E71496B0080; Tue, 2 May 2023 13:39:19 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id D46B46B007D for <linux-mm@kvack.org>; Tue, 2 May 2023 13:39:19 -0400 (EDT) Received: from smtpin27.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 29C82160E1B for <linux-mm@kvack.org>; Tue, 2 May 2023 16:48:00 +0000 (UTC) X-FDA: 80745897120.27.A3D1DD8 Received: from esa1.hgst.iphmx.com (esa1.hgst.iphmx.com [68.232.141.245]) by imf05.hostedemail.com (Postfix) with ESMTP id 6A18610165B for <linux-mm@kvack.org>; Tue, 2 May 2023 13:18:47 +0000 (UTC) Authentication-Results: imf05.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=jqP0izCR; dmarc=pass (policy=quarantine) header.from=wdc.com; spf=pass (imf05.hostedemail.com: domain of "prvs=479dded8d=johannes.thumshirn@wdc.com" designates 68.232.141.245 as permitted sender) smtp.mailfrom="prvs=479dded8d=johannes.thumshirn@wdc.com" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683033556; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=KaSFDGkhunda3gtibHVAaJqYH3WkPsJ5w2IIJp7VLpo=; b=MXmJuCQXjzvj0dTC9VSj7xxf66mRmOJfbPfy6f2m8JrV43YBbkvWVII8ig+af9qfv/mWlA OPO9BKI0atukSxIB/GJ4KLnLMJpr/CROrlnWtipUxT2WIoZ71gDEwFval3yaZyJ4tpM10t +iEhW0v0Q28L7qqm4QNhr5mv0UXb3yY= ARC-Authentication-Results: i=1; imf05.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=jqP0izCR; dmarc=pass (policy=quarantine) header.from=wdc.com; spf=pass (imf05.hostedemail.com: domain of "prvs=479dded8d=johannes.thumshirn@wdc.com" designates 68.232.141.245 as permitted sender) smtp.mailfrom="prvs=479dded8d=johannes.thumshirn@wdc.com" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1683033556; a=rsa-sha256; cv=none; b=8nOLDN2Ar76/xSSjssPkKl/Ks+RbUIaDXwZB3/zzdRQMgZ2q2wYfzHEbYac5THxGnSheR4 3mOAQ5ZwzQzEviuj9lKGiWraAbi2kLiYfaa8+eQ5Agy7c3ZIgUVLeJFLHskY+kiF4E0L3m ID42R15y6OSlbVzpdCOgzttALRMimhU= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1683033557; x=1714569557; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Izz1m415iRpIH2KEmuCSasFE37owqNrtjCwL859ZmdU=; b=jqP0izCROv+o75BAFt9hyXqAF2v8GxMgqHqMrzgiD69FmZmv/I49mYJI ppiMqC2XDEcZelEZVJNIG/uiJ8M088cdW6LcyspJlT4D+uvbbwNsuWVOM fZA9Rt7B0DkurqRgMWiKCpGaYFHU14ChRqPWTkpEbAkgjuh2XpTGGsW8k FhP4IDTXEplLkgZJa3ZHqbBN5gx9SE7B0xZ/uyh3YYaLSdeP+GYJv3b6v Sb8u0BeH5r/SnwvqVjDPIuqfXJnD1gcXwMLb03RG75/VvVFVqWuuLc2bQ c/arnMIJKzcvdD22cvC2LQpTIxOfEfB5yuF7EGF2rpC1Ji8u/llU25dom A==; X-IronPort-AV: E=Sophos;i="5.99,243,1677513600"; d="scan'208";a="341747208" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 02 May 2023 18:21:40 +0800 IronPort-SDR: cJ+HouPngrfs7ufVQp9f+8WFT9UVwwFCZH59JUttjqGp62CozJ2+4+jenabmA+vR445+XMMHYd n6B6ONnI7n/cbgy3EF0y9OQUJ4pGpZndluspBbZcgIx+ob1Wr7wu3hr7YOA/gAO/AIKugxuomS 7uBUm7cRSa5xWyEPymb96ARDf2HOrK1f6ikk8Jd44FZfUAj32eg8GYEl9r03rNsl1FmwqeziGR 8kg3gtLLM3bV4HvpHQpUjB4P5xM3YTQwlBiqd+IZRdEUL0Lh9vg+9RoH9brQdXHt8L+E3D7pEV yQM= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 02 May 2023 02:31:27 -0700 IronPort-SDR: 8hfezwIRYSWrrJUCjb8qjdEWmvQTAb8oREcSmYVL+8wk37Pg8Tp8roG1ZW+mjz9+6QAe4BsYpR EmWDRLcNeuJA92n5AIBbxiEh8eaf7kNTQoJEaoTjt7fYdn6r17LR46CVYDGJSihbaVMPma1L+u Irr0Z59+CdymlR+nAOTRZX3GKZJBGdjXU2UbPpLAYvOc4YKURimKOUi/xKoEJ7xmEC5Nk9TAiH owgOpkXcZgnwpHauY5btjBdZk+mI0uRcc4XS7SdsdzmLtvgoeCacNXPcdywNwlmur79/2ZnvYn +MY= WDCIronportException: Internal Received: from myd008205.ad.shared (HELO localhost.localdomain) ([10.225.1.100]) by uls-op-cesaip02.wdc.com with ESMTP; 02 May 2023 03:21:37 -0700 From: Johannes Thumshirn <johannes.thumshirn@wdc.com> To: "axboe @ kernel . dk" <axboe@kernel.dk> Cc: agruenba@redhat.com, cluster-devel@redhat.com, damien.lemoal@wdc.com, dm-devel@redhat.com, hare@suse.de, hch@lst.de, jfs-discussion@lists.sourceforge.net, kch@nvidia.com, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, linux-raid@vger.kernel.org, ming.lei@redhat.com, rpeterso@redhat.com, shaggy@kernel.org, snitzer@kernel.org, song@kernel.org, willy@infradead.org, Johannes Thumshirn <johannes.thumshirn@wdc.com>, Damien Le Moal <damien.lemoal@opensource.wdc.com> Subject: [PATCH v5 14/20] md: raid1: use __bio_add_page for adding single page to bio Date: Tue, 2 May 2023 12:19:28 +0200 Message-Id: <20230502101934.24901-15-johannes.thumshirn@wdc.com> X-Mailer: git-send-email 2.40.0 In-Reply-To: <20230502101934.24901-1-johannes.thumshirn@wdc.com> References: <20230502101934.24901-1-johannes.thumshirn@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Stat-Signature: eite5tbxix9jwgxy3sx3xgxrh74wks99 X-Rspam-User: X-Rspamd-Queue-Id: 6A18610165B X-Rspamd-Server: rspam07 X-HE-Tag: 1683033526-823276 X-HE-Meta: U2FsdGVkX18LEv5PgXUPnbjNvSZ8v3DWXjE/N+TMhj4UG/jNvtw5rujC0Zc5pqncgurKqXkxLyhqAttS79JZsJhp+/aHSuez/nsm0EbXZR1YObL9UHZnksgzEcneJSiLdOV9eakwxZ/zRapf/IviJySQPUtKYVSrPcTbSS64gb8erUipWfu0jSsLj2Y310vQ1wlDQLCAge5bRYHTrs3F8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X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> |
Series |
bio: check return values of bio_add_page
|
expand
|
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 8283ef177f6c..ff89839455ec 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c @@ -2917,7 +2917,7 @@ static sector_t raid1_sync_request(struct mddev *mddev, sector_t sector_nr, * won't fail because the vec table is big * enough to hold all these pages */ - bio_add_page(bio, page, len, 0); + __bio_add_page(bio, page, len, 0); } } nr_sectors += len>>9;