From patchwork Tue Jun 13 15:07:33 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9784221 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8C58660325 for ; Tue, 13 Jun 2017 15:07:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6874628417 for ; Tue, 13 Jun 2017 15:07:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5CEF22864B; Tue, 13 Jun 2017 15:07:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 119622860D for ; Tue, 13 Jun 2017 15:07:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753424AbdFMPHt (ORCPT ); Tue, 13 Jun 2017 11:07:49 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:7058 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752854AbdFMPHr (ORCPT ); Tue, 13 Jun 2017 11:07:47 -0400 X-IronPort-AV: E=Sophos;i="5.39,338,1493654400"; d="scan'208";a="122260011" Received: from mail-sn1nam02lp0018.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.18]) by ob1.hgst.iphmx.com with ESMTP; 13 Jun 2017 23:17:21 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=/P+5fYgT4pvDsFrpVWhQzy6Y/QZ35Z6hohGXW975mYE=; b=igkyZ24eDXv0WiiVfNsocF80vjQ7FhHAaQr7P92gYt9aoGAOwPMIHTVr3XJATGzo7mpkyE5F0bXs0zZHee94fGGu7tebgFUzSnAD4aBHdZSfMyvlegeqs3zeMEGGeoOymYTtbxal3NdB+cK5QrNWVjjajRid7jjcHyZ6wn0yQ+o= Received: from MWHPR04CA0066.namprd04.prod.outlook.com (2603:10b6:300:6c::28) by DM2PR04MB543.namprd04.prod.outlook.com (2a01:111:e400:2430::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Tue, 13 Jun 2017 15:07:44 +0000 Received: from CO1NAM04FT062.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::208) by MWHPR04CA0066.outlook.office365.com (2603:10b6:300:6c::28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Tue, 13 Jun 2017 15:07:43 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; lst.de; dkim=none (message not signed) header.d=none;lst.de; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by CO1NAM04FT062.mail.protection.outlook.com (10.152.91.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1157.12 via Frontend Transport; Tue, 13 Jun 2017 15:07:43 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id 90.C9.02805.BBFFF395; Tue, 13 Jun 2017 08:07:41 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 13 Jun 2017 08:07:39 -0700 X-AuditID: 0ac94369-57fff70000000af5-2e-593fffbb5390 Received: from exp-402881.sandisk.com.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id EE.11.18148.ABFFF395; Tue, 13 Jun 2017 08:07:39 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , Christoph Hellwig , "Bart Van Assche" Subject: [PATCH] block: Dedicated error code fixups Date: Tue, 13 Jun 2017 08:07:33 -0700 Message-ID: <20170613150733.9245-1-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrELMWRmVeSWpSXmKPExsXCddJ5ke7e//aRBmeW6FqsvtvPZrFy9VEm i723tB2YPS6fLfXYfbOBzePzJrkA5igum5TUnMyy1CJ9uwSujGf3W9gKFnBV3FrbzNjAOJej i5GTQ0LARGLfhDWMILaQwFImid9XDLoYuYDsbYwSe891MMIUXVqxjgUisZxRYkLzbSaQBJuA kcS39zNZQGwRAQWJnt8r2UBsZoFCiTO7IeLCAsYSk+a/YQexWQRUJc6f2gRWwytgJzHt0A02 iAXyEme37GQGWSAhcJlFYuO79YwQRYISJ2c+YYEYKiFx8MULZohT1SVOLpnPNIFRYBaSsllI yhYwMq1iFMvNzCnOTU8tMDTVK07MS8ksztZLzs/dxAgJycwdjHefeB9iFOBgVOLhffDePlKI NbGsuDL3EKMEB7OSCK8DMKCFeFMSK6tSi/Lji0pzUosPMUpzsCiJ856TmRohJJCeWJKanZpa kFoEk2Xi4JRqYMzOiU/T3SG7R+qme+F+AfZHab69tTs3X31f2sh2YcY/t2QP0WtLdu3/sXVT 1Q6XC1Kbtx1c/E76WU2Ae+rhm2UPNLwVl794d/bQtLL7ujeTy/I33jPufas2e9uP8pOCLsGi f0/MWFuz83jBFx7H+o6ooz42+/9P/2IeaPz8VCZ3WbSswiuWymtKLMUZiYZazEXFiQAX8NBL RQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkuLIzCtJLcpLzFFi42Lh2sjJprv7v32kwZs56har7/azWRz82cZo sXL1USaLvbe0HVg8Lp8t9dh9s4HNY9qa80wenzfJBbBEcdmkpOZklqUW6dslcGU8u9/CVrCA q+LW2mbGBsa5HF2MnBwSAiYSl1asYwGxhQSWMkoc2KUMYrMJGEl8ez8TLC4ioCDR83slG4jN LFAo8WVDKxOILSxgLDFp/ht2EJtFQFXi/KlNYDW8AnYSW7u+sEHMl5c4u2Un8wRGzgWMDKsY xXIzc4pz0zMLDI30ihPzUjKLs/WS83M3MUI8GbWD8fpE80OMTBycUg2M8e0ba6/5TfE9veI3 95ZdpjOZV0lOiZWsis0U3ezj/KfNRbSuMujKPCP+Xd/2J8+sUkpyl/nINyWk2mfTsTX778bN /1C0dVNBjuaWKIXoy5dCA+LWHfoz+Xej5xZu1pIr7TKKVmaBjEGCrB2dt/7t3ji381bCHZNK FiUmb3MzS5Gvje3hR78osRRnJBpqMRcVJwIAi0J4/pQBAAA= MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39850400002)(39400400002)(39450400003)(39410400002)(39840400002)(39860400002)(2980300002)(438002)(189002)(199003)(81156014)(6916009)(69596002)(110136004)(6666003)(86362001)(305945005)(38730400002)(72206003)(50226002)(97736004)(1076002)(68736007)(8676002)(107886003)(47776003)(478600001)(77096006)(8936002)(50466002)(81166006)(5660300001)(48376002)(33646002)(2906002)(36756003)(189998001)(54906002)(5003940100001)(53936002)(356003)(50986999)(4326008)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM2PR04MB543; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT062; 1:/1HHeZix6jpWjMWYKJ25WK0Ofy4e1aqrqVGblFjNBCCu130+Bv5kRH1WvBLmuoNeSTs0VB+z4xa28oAusbZuBo0fAJeud4KdDBc4A4CwXDJYf0Mm3CiYfUkDy4CjfyvXHQItBSNwBAHPoLIdekCEfvbRDXCB5eohMBn8pBZDmnLfgPUYRByoeff/YhKtT/BvjyUuHHkZqqUlc7tGy3Lh4i0QTN03dxb4erBHR1A30j1wfyJBuc03WhMWE/w4ZxFGxFRlrdPgYc3OX36cR+DWUx9imRrbPNWr8kUilsIg3kiHLdo4C8lJ8cHb0ezDKPrk552YkGYi+5bJrzUVtjm42B7/whVS1Ic3CWswxSclGSunyNWIiPkDAB6PMGIDSe8LoQuBMtuAn1x7UWhkfjpvJ47oy3LUhU8l+FJVTQZHB4QvAvxZp4CgU+LZ95umQRSoLsZaNa0hELIKzRsFFP+sP02rrHZCe14w+cE8pZxC+pWKCdmRpkSpZpk+mC36HQmhjw1svIZxPRZXUUrNGYm4j5e1d3SxpCFTJ9QymTmkcJyv7B8hAev3hZ0kVrwYlbuzhobgJduAuC+I1uaK1ZcXEA== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM2PR04MB543: X-MS-Office365-Filtering-Correlation-Id: 486b543a-0054-4679-6018-08d4b26df169 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM2PR04MB543; X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB543; 3:2mCQQ4poqZCMOXyZvoLqrqQ3hARFqlYUh8ryb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nc1XTfD98StuQ6uIjL7fqQDiG+3l6qwS2M5TtfpOqgdhs9ejPK/lWSheet5zi+MXXYgqrah5MiirkSykPuST04snv6hbxadE5xHSOqZnN1EqBgN55opytFNaft2qel3cyeV8zgNDBk91Rbx7f8IqgY+gtrYH6yNZ94npDboCs/eQvkm73v9zt9AFuF8PToQjDoFK WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB543; 20:KubmZs/PWd4JQr1GNjBWr4CGc5HGuRv4BR7n2jZmWv/aQ9XKBl1PbmdgPoK6p63wHySsOjOPsRzxOQc0qLDlluhpwVVhjwKmLsaIAGYhaR3uU8LdOKNLfw3h9P4zgG+MlgxKooGm+Y0Ml4Le5cIN5Q00hqjxlB83Mg5hfJJYalicf8f3oDwx9krMsdB1sJaSX9IJk/OTslAov/IxYGiNnRzsJTTiP34OehjHaw3ywUS25LQYJ0viG7XwXoHr6QRiSEVaYlhk+IcF7kqvEd/Sprs1KNWxkye7u2NsIODMSgR1oIgBuBxj+eXfGVYrw92FMUXx7qSY1Rl/kkMK0NGGaB+TK3oRoobhKwhTPYkWZUyePiDMlJAc3Uzsqa2OP7BVxD0Q1xYNYxOpCFFOI73abptUX5IHVKxmeV7949fZ/ruUxhAjDSuQ2zPpShNhIlDBqHI6qAblyH9PPTFHl7ltiDZPy/W7R9KWXiVewnktyo/Ir1eodt7QGOU1aGVak+Ri X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(13016025)(8121501046)(5005006)(93006095)(93004095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123558100)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:DM2PR04MB543; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:DM2PR04MB543; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB543; 4:+8ydMHlqHn1AZXMbx3oUNzYc2M1W1F1yh6SIrhCF6lX?= =?us-ascii?Q?4wn/Ll7skhCZRoROB3RX3dnLixqKWzRy/SrWNm+Qpa98zd2lJi5HOyJwP4/o?= =?us-ascii?Q?NATs3kstm4DwNqlDKhPK6R5NgSFxRRCXFqGGFO9odIN1FzpSMijxtMWqfLNc?= =?us-ascii?Q?w5igiDP0uiVROTnS7NCELHJDfsaTuy/k2AmAes5eG5Of64FIRhyVPGSoH4+o?= =?us-ascii?Q?HRlIMoFxWWMX6lQHlCTBCwntXFutEUOox1F0i7kUmQKDLYRIiUJZt5Ucz/ay?= =?us-ascii?Q?rzOdAxeQfRiKGkeXxfLDH2xJGmdPJNiKewpwfpa26WnAx4VfjqZgy7ywP0an?= =?us-ascii?Q?8/T9B10dsKD5iauFPeipp1xZLjzZ4sBovuQcqjB4AeKZA1Mkz3xvLM8xAVRi?= =?us-ascii?Q?TVp4cQjFZCi+iy+b4HQPh2UnU3G4/KPu4plr6DuEK6E/TSJkYjaQ9GDswyQw?= =?us-ascii?Q?qQNsgCQGpQVTIMXplpkc5+ET/w9pW1bcWhpiM/0rYHFA/x/nuAoa02MzzfkI?= =?us-ascii?Q?K51NWVWpJYAuowoLYwm1Yr8VImoMO7lrK8j+mW/B9hNrC0NkhG9BaJMyizOL?= =?us-ascii?Q?8wlshHFz42TyhOwyuAEy8M9R5uKsW5wVfpsUq904TXKdy7OktV4w0TG60ajk?= =?us-ascii?Q?ZEuXcwJi372nM84bmQSXZgEFLAkf8tZVSUadOHY6G7H4Xxx6O6YnCIaKpZvJ?= =?us-ascii?Q?5VAikiKzUGAscvqFLPbRZFuXG7kSWpkg4/4E5lqjIZMSfzyjg7kTJ6ZRRbvY?= =?us-ascii?Q?C8DPKo0Le92vnrhCGTKxj9xfkKYzInmrJ9DWVOcspbi7tOQfIV+8w6Z1NwsR?= =?us-ascii?Q?Dwo0uEzlIZfeUgI4K89BjmH0GOgMVFob0U3kdIRo1JGe7WIIypzKwNhufwGq?= =?us-ascii?Q?5XGig5sHvLHUcvf9sf9TmIQkstLrRwlnOpKJaYeYd/59KoTz2CPLkGzvi7u7?= =?us-ascii?Q?A/9c3YNIrpW70OLqFJtSRIXIZRvvySx2xI5J+QQXB7xqdsg5QC1QDC7pbhss?= =?us-ascii?Q?X+fbEysU5B0KWbj1yvohCyYD+SDs9QaD7r3tD836OZVdLYwowJBimNHGDqYv?= =?us-ascii?Q?71wki1lWrs8cs5nxk5sC6Z07ymJbUzzmiPinMhMLhNzcPgloSANneG//tM5B?= =?us-ascii?Q?Aj5LVcze5JsTtf1nCDkJTlS3u+8dOll35q/2wAqoj8cScqwrpa63LtsNSK6r?= =?us-ascii?Q?oCNxsgmuDw4n2ieQIj74RcGGCoG/GvEtDXdaaviSA0com0eg/3xriNYN9wGi?= =?us-ascii?Q?5nXI+YVdU2Vkpx1w=3D?= X-Forefront-PRVS: 0337AFFE9A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR04MB543; 23:tGxI/MdSq8swYrF8S0vCCxBYFA4Kmu+osck9UdS7vM?= =?us-ascii?Q?r4RRa78PK7P3YdIoO5ylZHh4o7YiDpaf3V3sx+NUOnga37to2br/TXVArMMX?= =?us-ascii?Q?kV+/dHESuu24czwhAOj22LeBXDsQkir6plm7cyAK9BM/ePl6H4sy0i9XyVfO?= =?us-ascii?Q?PHUcVluhmgLZKdyhBaqwPksVAKqgR3RoFmJnEq+U8ggXbHBKoB6UThYKkRni?= =?us-ascii?Q?yXNEnPeQClxpKvgj1mi8I7nKLssM6RzB0y4hsXUhGuJ1f2orpT5A8dkzxHia?= =?us-ascii?Q?OH0zTEr+EYz5tDvnHah+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2fieYh9eOWXNUpIAs; 24:nBwiH8SnQWCU7JWgJrrLP263+Hvn0hKQa0P7eg1vPOMmr7F/anU746f4fxfdsJBMWc2SyhBY8+jucWw8Ievl0t+a9kE1WBSjOYZL/NRJ5xM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR04MB543; 7:4mWNgMAXQZ2hW5rsqy2SDu0f3z5yKaJDN6xJCLyvuC6pKbrAcbX6wy+zx8kdNprNi9Mc/u3nOBS4h4uEhbUMo6ulBgfvfyJ0o6yvgwajVKU1MKUMwRDiEWJETOR+EijUcgawnJRlwARB4z6lCA4WzvR5QMyOTGWHEQJtnh/7GL7Ykx92b38y0GYQZ57s1GaAYAFtIY9gC+AbfcacsGR9RcrMSAFrkicn0Vvcl041Rg+rZisokKYPhbcQxA22s0rk5OBrLwiZ9d1pomR3oDv6+aRjBszRN6EOjYWOyAhgb/Fvv43ZkGmj8MFpEmHSoHJOoBVwMluVmg6IWTqC3GH3xQ==; 20:kE9jq5b7wLn4xCsMgUNOrkcZbzoPzbHhRZGlyBfICyFBOiSlcQWAICbmJoRTyuc3DRNjjmCcnbLpAQ9S231BpCD6iuWNkJuix1GevCJGfXIgU5zcy/nYF8yHVzH4mzXFceQAWsqxA66uMFkoaJgQrByxfJCUA43O39La+Is3pYo= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 13 Jun 2017 15:07:43.5134 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM2PR04MB543 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP This patch fixes two sparse warnings introduced by the "dedicated error codes for the block layer V3" patch series. These changes have not been tested. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Reviewed-by: Christoph Hellwig --- block/bio.c | 4 ++-- block/t10-pi.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/bio.c b/block/bio.c index 7a5c8ed27f42..0e36ca5407b5 100644 --- a/block/bio.c +++ b/block/bio.c @@ -1817,8 +1817,8 @@ void bio_endio(struct bio *bio) } if (bio->bi_bdev && bio_flagged(bio, BIO_TRACE_COMPLETION)) { - trace_block_bio_complete(bdev_get_queue(bio->bi_bdev), - bio, bio->bi_status); + trace_block_bio_complete(bdev_get_queue(bio->bi_bdev), bio, + blk_status_to_errno(bio->bi_status)); bio_clear_flag(bio, BIO_TRACE_COMPLETION); } diff --git a/block/t10-pi.c b/block/t10-pi.c index 350b3cbcf9e5..3416dadf7b15 100644 --- a/block/t10-pi.c +++ b/block/t10-pi.c @@ -91,7 +91,7 @@ static blk_status_t t10_pi_verify(struct blk_integrity_iter *iter, "(rcvd %u)\n", iter->disk_name, (unsigned long long) iter->seed, be32_to_cpu(pi->ref_tag)); - return -EILSEQ; + return BLK_STS_PROTECTION; } break; case 3: