Message ID | 6cf7f66c6e646231200d025dfd5f2d3ae75c8fe5.1685532726.git.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 62A2FC7EE33 for <linux-mm@archiver.kernel.org>; Wed, 31 May 2023 11:51:38 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 07B7D6B007E; Wed, 31 May 2023 07:51:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 052B96B0089; Wed, 31 May 2023 07:51:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id E5CB18E0002; Wed, 31 May 2023 07:51:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0011.hostedemail.com [216.40.44.11]) by kanga.kvack.org (Postfix) with ESMTP id D63646B007E for <linux-mm@kvack.org>; Wed, 31 May 2023 07:51:37 -0400 (EDT) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id A903FA035D for <linux-mm@kvack.org>; Wed, 31 May 2023 11:51:37 +0000 (UTC) X-FDA: 80850385434.22.579910B Received: from esa4.hgst.iphmx.com (esa4.hgst.iphmx.com [216.71.154.42]) by imf10.hostedemail.com (Postfix) with ESMTP id 95A58C0020 for <linux-mm@kvack.org>; Wed, 31 May 2023 11:51:35 +0000 (UTC) Authentication-Results: imf10.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=ljvAZG0i; dmarc=pass (policy=quarantine) header.from=wdc.com; spf=pass (imf10.hostedemail.com: domain of "prvs=508ef2a02=johannes.thumshirn@wdc.com" designates 216.71.154.42 as permitted sender) smtp.mailfrom="prvs=508ef2a02=johannes.thumshirn@wdc.com" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1685533895; 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=e5jeRClelxpWrkKfF2xneuRF5zHKGThLfAoZ33Mhr2E=; b=mjqbS60f8yZ3liue/dBFd2vztblqOJteNfqUk800O38eEKfCQEBCgAsjRFyfihK1Io6Se2 ufS/Vg9oBhgkDfaZJscAgtMor0EIs29Z6wGegT38cFE6pmGu6vvOWz1ILJJ7X2D0MeJvUN xm36GkeQ/ieQP33Deljaf2m4U6dByXo= ARC-Authentication-Results: i=1; imf10.hostedemail.com; dkim=pass header.d=wdc.com header.s=dkim.wdc.com header.b=ljvAZG0i; dmarc=pass (policy=quarantine) header.from=wdc.com; spf=pass (imf10.hostedemail.com: domain of "prvs=508ef2a02=johannes.thumshirn@wdc.com" designates 216.71.154.42 as permitted sender) smtp.mailfrom="prvs=508ef2a02=johannes.thumshirn@wdc.com" ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1685533895; a=rsa-sha256; cv=none; b=qSIzJBxusZ4VdE9SCElIbEYt1GIihugI+CKmbh3ePPtZGr70/asqqAd8yMWgB5zxcUDMtp TNrnA/GXjiqcq9h50xh2dB9FXwGFc2VVMLAq00H4f9x76Nw0EQE73RS4Uqh6w7b/sdIg49 b2yjiXzPSuWduOXtMICMkaSHFJqEchQ= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1685533895; x=1717069895; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=bohfoz0yKcyrTKAmwYJ5eEtuSyoqE/wma/5DAX2SoB4=; b=ljvAZG0iVaEm27TH4iIw69Mb9W7NhtX5J9z4HIjKL4Mvx3VYXvKCC7zI JGMpPwircoLGwrcOodJKI6xKispE5JRD5lJ6rmcXjlGBFZyQipoYiFWCQ /2AQXp/gJFC2xLHR6Q+YsSxseD7a0/rTrzHH3bfZ7/weuY1llmNOuXdk6 DeoxLVO96IsdYlQp4K5mCoI4GpM4MtUWCfDu1MSEnYTJs8UuD+aWIn5N0 asUqgUo0UBucfffgtU3xdgFY2Iryw21oi/QTbE0JiQW1k/EBaH8KyCD1O Lq8QXyFoDybsc8vdDWOD/RKgdK5d/XDc6As6P3xHKDp5ssLz86Sq0dbZi w==; X-IronPort-AV: E=Sophos;i="6.00,207,1681142400"; d="scan'208";a="230207473" Received: from h199-255-45-14.hgst.com (HELO uls-op-cesaep01.wdc.com) ([199.255.45.14]) by ob1.hgst.iphmx.com with ESMTP; 31 May 2023 19:51:34 +0800 IronPort-SDR: RMm+mR80mqUTcBqJWehnD55GKfXH26olerxhk2kDdlPAsXM7sPeEtVkCvZ5fLcbaK7vgc7VmET 4nCZpW9I5Z/FobLsLVatkCtwZ+sCM9tQ9id6I5kcgsW9e3x4kCkoNku1Gh41a5E39E7XzIqF0r F5SqOfXfwySlrE9o6YGasSqUuBiUOZR1FT9QEaN3YmAh0DoeReO/pjp7tbhWvPK60shUOPw0xZ LuDQHNxQHnMGsD1JX+SUo33H4Pm7fyn2fsiIG5Kxpp8XHas62UoN1sVb9swnwZ4/jBENgFqwa5 cPg= Received: from uls-op-cesaip02.wdc.com ([10.248.3.37]) by uls-op-cesaep01.wdc.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 31 May 2023 04:06:27 -0700 IronPort-SDR: RyI1mO/6ZDV1E3DLyp6Uz4OkisAp3fmmDbkdi3t8dad2mENNTujbJYnovxO5rrnbcFvj44/+jo 9geIEpgzs7b1YFKTE0G1l0Lp3+lEzNTl9X1NIJsU40I2Prt8PsF3yR1dayx8fCgdFyyn8gKXEz IXyrLtro5IVNZQZrV6QYzNOWEEJMlX3Q7lqTPiOFr1n/0rkij17qLKpIKNy8BFHJEhMnhLSV+o YRHeP/3vtyn1/eOy69ZH3PZyRUMWrOMLRpBiN4E9fFtSLU6ZiZvnsiJCzeS0GaTmXOpjuO4FSL 0ms= WDCIronportException: Internal Received: from unknown (HELO redsun91.ssa.fujisawa.hgst.com) ([10.149.66.6]) by uls-op-cesaip02.wdc.com with ESMTP; 31 May 2023 04:51:32 -0700 From: Johannes Thumshirn <johannes.thumshirn@wdc.com> To: Jens Axboe <axboe@kernel.dk> Cc: Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>, Chaitanya Kulkarni <kch@nvidia.com>, Damien Le Moal <damien.lemoal@wdc.com>, Ming Lei <ming.lei@redhat.com>, linux-block@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, dm-devel@redhat.com, Song Liu <song@kernel.org>, linux-raid@vger.kernel.org, Mike Snitzer <snitzer@kernel.org>, Matthew Wilcox <willy@infradead.org>, Dave Kleikamp <shaggy@kernel.org>, jfs-discussion@lists.sourceforge.net, cluster-devel@redhat.com, Bob Peterson <rpeterso@redhat.com>, Andreas Gruenbacher <agruenba@redhat.com>, Mikulas Patocka <mpatocka@redhat.com>, gouha7@uniontech.com, Johannes Thumshirn <johannes.thumshirn@wdc.com>, Damien Le Moal <damien.lemoal@opensource.wdc.com> Subject: [PATCH v7 14/20] md: raid1: use __bio_add_page for adding single page to bio Date: Wed, 31 May 2023 04:50:37 -0700 Message-Id: <6cf7f66c6e646231200d025dfd5f2d3ae75c8fe5.1685532726.git.johannes.thumshirn@wdc.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <cover.1685532726.git.johannes.thumshirn@wdc.com> References: <cover.1685532726.git.johannes.thumshirn@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 95A58C0020 X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: rx4i3g18jh49t7ac8qxw5n39h48ttwqq X-HE-Tag: 1685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abcikpddkzj2oL0leL9IU73CHNF3f2vEbngAM1zVxiMPoDh9G2XRG7y/BrqmAvMe2El18k4lNVRzIKrthfVV+d4OWysPskLHU5N+NEBaJ9Pjw1Hq7CaVMID885DxHsEA0N4v/sx5ChS0XjQtt//qBpLh5JCzBq5SgJ3M/g42GpIxHnuKlTc7Z7wLTryauHcfp0/RijEP+rKd/fp+lKw4RUhBKorySITn7K00Ionrgm6lfCtEyMo0kmCVuu8rVe5Bm6863z4IqzucRGqZ3WsD/1mAms+oP6rG+5iFx8GEPfUkD5NP5MjG52QgvpoIemJJe7gaV2n1+1/M1WBwIv1xnlapUvxpeYxGhkCx6MjbjU0nlN+huzdw4501sI= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk 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;