From patchwork Tue May 23 23:48:26 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: 9744425 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 B454D6037F for ; Tue, 23 May 2017 23:49:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A783528818 for ; Tue, 23 May 2017 23:49:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9C6542885B; Tue, 23 May 2017 23:49:19 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 6848F28818 for ; Tue, 23 May 2017 23:49:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936261AbdEWXtR (ORCPT ); Tue, 23 May 2017 19:49:17 -0400 Received: from esa6.hgst.iphmx.com ([216.71.154.45]:63550 "EHLO esa6.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1765528AbdEWXtF (ORCPT ); Tue, 23 May 2017 19:49:05 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="21079174" Received: from mail-bn3nam01lp0183.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.183]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 07:49:04 +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=dejkteiBOeAMf3nau9xzeNZM/ZK3HhiS/kREks60ka4=; b=XTjIuIz+Sn0Hjs1maBlen4hc4QO/0rTwds584n3QNLDsMhE+21r1oFm+NvDYoH9RIm0384E8jegBuIjDA9OTZgHmcmrUQG9e1p810ypnNNAoknfBDnILE9Dl0mfL35sgIBySIGQ19ZGN038YNR0Dp0GtTRzUGVq4EUJwBEd0U8Y= Received: from DM2PR04CA061.namprd04.prod.outlook.com (10.141.154.179) by DM5PR04MB0508.namprd04.prod.outlook.com (10.173.170.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 23:49:02 +0000 Received: from CO1NAM04FT053.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::203) by DM2PR04CA061.outlook.office365.com (2a01:111:e400:243c::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14 via Frontend Transport; Tue, 23 May 2017 23:49:02 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; linux-iscsi.org; dkim=none (message not signed) header.d=none;linux-iscsi.org; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by CO1NAM04FT053.mail.protection.outlook.com (10.152.91.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1075.5 via Frontend Transport; Tue, 23 May 2017 23:49:02 +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 4B.64.19026.D6AC4295; Tue, 23 May 2017 16:49:01 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 16:48:58 -0700 X-AuditID: 0ac94371-41ba798000004a52-02-5924ca6d6575 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 88.F2.18148.A6AC4295; Tue, 23 May 2017 16:48:58 -0700 (PDT) From: Bart Van Assche To: Nicholas Bellinger CC: , Bart Van Assche , Andy Grover , "David Disseldorp" Subject: [PATCH 05/33] target: Add support for VERIFY(12) and WRITE AND VERIFY(12) Date: Tue, 23 May 2017 16:48:26 -0700 Message-ID: <20170523234854.21452-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170523234854.21452-1-bart.vanassche@sandisk.com> References: <20170523234854.21452-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrGLMWRmVeSWpSXmKPExsXCddJ5kW7uKZVIg9dLZC32z3rGZPH1/3QW i7bVZxgtWpe+ZXJg8bi//QiTx/t9V9k8Np+u9vi8SS6AJYrLJiU1J7MstUjfLoEr43b7T+aC 1dwVrV82MzYw7uLsYuTkkBAwkZi0+CNrFyMXh5DAUiaJK1P6GCGcHYwS73o3sMNUXdz9gB0i sZFR4uytbWAJNgEjiW/vZ7KA2CICOhKz7r4AK2IWmMEoMXHxQbCEsECQROeUl2A2i4CqxOQp G8FsXgF7iWPTfrBCbJCXOLtlJzOIzSngILFyzzYgmwNom73E5e/KIDMlBJpYJdY+2MgM0Sso cXLmE7A5zAISEgdfvACLCwmoS5xcMp9pAqPQLCRls5CULWBkWsUolpuZU5ybnlpgaKJXnJiX klmcrZecn7uJERLahTsYX9/2PsQowMGoxMOb4KASKcSaWFZcmXuIUYKDWUmEd/kGoBBvSmJl VWpRfnxRaU5q8SFGaQ4WJXHeLNmpEUIC6YklqdmpqQWpRTBZJg5OqQZGUV4RizI2nQ6W2h+H H/7pDpaoDrTvvP18d84zky/ONTZ//79W/bvbJv9JwrXIlhNmsfZuN0PesoW++CrQf/eIpwPz jvKVMY1fO/PYBH6YBEc9at7pcGxyKKudr/wkJfYjq1akWpbN2Hl4l8iNCbkOTU/WzxfQm16+ Q3bPwmXV5nOmfOzn3OGqxFKckWioxVxUnAgAn8x26WkCAAA= X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrKJMWRmVeSWpSXmKPExsXCtZGTTTfrlEqkwb9lohb7Zz1jsjj4s43R 4uv/6SwWbavPMFq0Ln3L5MDqcX/7ESaP9/uusnlMW3OeyWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDJut/9kLljNXdH6ZTNjA+Muzi5GTg4JAROJi7sfsHcxcnEICaxnlDh2ZBozSIJNwEji 2/uZLCC2iICOxKy7L8CKmAVmMEr0N18DKxIWCJLonPISrIhFQFVi8pSNYDavgL3EwT1TGSE2 yEuc3bITrJ5TwEFi5Z5tQDYH0DZ7icvflScwci9gZFjFKJabmVOcm55ZYGikV5yYl5JZnK2X nJ+7iRESEFE7GK9PND/EyMTBKdXA2MHxf/eeaa4THnhHnp5jtvnDpwd7Q1TPesvrsEpIfq0N c1iXL1gRlhr9t3WDwOo49kXyZ167BTj0NXZE/5yTZvJ4usk+qaLJttkbpbbEyO67W260cot8 8GGtnbxuRxKaW6VXbbhlYXjeeaVKyP7nSyZbP3XuNtx+yvvsHeZre/dstkpzy1m2SYmlOCPR UIu5qDgRAE/tREK4AQAA MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39410400002)(39400400002)(39850400002)(39860400002)(39450400003)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(50986999)(48376002)(36756003)(33646002)(47776003)(1076002)(76176999)(38730400002)(106466001)(2906002)(5003940100001)(50466002)(189998001)(4326008)(15650500001)(54906002)(110136004)(77096006)(86362001)(6916009)(305945005)(6666003)(2950100002)(356003)(72206003)(8936002)(478600001)(5660300001)(81166006)(8676002)(50226002)(53936002)(217873001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0508; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT053; 1:qNId2klhK3CKO+K+NU/h00X1TYMWBCFXISbudSP7C8hHv6iT6JL4xrQsNzQKujxPw4mZssSNHpDk1K513k5TZ7uPMW516h3SZvJpEvmY+JKUCXO06T1nyeioKEyCjO1DiKpISkXpqZ01aLpptcteJyFgNxTz2Q2n8GGvIK6NTefZu2cOx8GwaVJShK31WD7j5wWkfl5oHImZTVoqWCnyBCNKSNz0oB/2k8hO7C88LElFUp1/pqiTnV/cjacMCzBXqYLB+OmPQTocaj03gVctYGqMO6XwkU/iB8eEMBDQfhW3VJm5rLOL2JeTM9s9Oeuw5/F+vKcqhNqdRddEBs/BBdagVOo88Yl6uCa82AST2G1AimOYTC1wFimud55lcyCkuvCdmzlAe8i7qPulFOCYc+HK7W2Nnuk/2yQoEQzv34gJhi081uy47aXe/+KOjIrmXCYjw3S+sqyBstL/K6rGYvHeXxLd7mYNDWBu0EJucjQ2KcozvBRWze8j7zTONER8 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0508: X-MS-Office365-Filtering-Correlation-Id: a948ccbe-9291-4d6d-c619-08d4a2364a3b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0508; X-Microsoft-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rMLlVhV7cEWuQKwh1gofsXjx56SbWricDxzjva9ABtuovYknY5JcrUSCTW7v3d+n37m4hINaYLlndg3yNE7oQSqt6s+Zskc2PHvGsWIriUQm6nnNuiOItU6MHLoBt0kbgfcg4j+dEhhx4Lru8rsiPB6FaKy3BCo8FZOV8PrhQZgYF0MuVKxtgzy+TG7GtpQFfvA4we81aFPV47zjsh4o9eTTkIPXE2T/vPNmxvmx6wh23z4jXxZgqw6nBUDAQETIPGduLA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 20:eE7TvZtBKk0qTQ7e7J78/vG8z3iUSfb2MmGg33LHR6X/r1pdTfxNmRtPyO3CLZUR0phyKgPRIOtvw7x9fw86Q/1SQXsHtjdEM8/1g01xncbsaIZBxfhca3ueBCnZ5mm+54sfuy7KLKJvNlfkGl0s0DkXe/mCptfHMVEoWtIYQbdAn1XQIhDxf/aNj3pA67NAASIpj2Bxt4YI7Xg5/8yLLYZO4l85wscCjjmvZ0WP1ur+sygh6GH9cYwADg8bZl4fn2YvEq4+bZB8D/Kh8VRKzOou/8WfWgfmv+cUIG6eu6eGS6t+rSDIRiqA0aI1N4si6lXulOYDTuEGL/IIXiQpCIe5ZBX00IFmrrGDV81pStYyrC0oOJ0YsPqAP3WMNFe0kkOpdi6MqXXNGGYzg3EbAyX88PZrKGby1+C0SDw13eK/Nob+Qe82iTXpcgMPHXmLBlvZ1U5rfQMpfL8vpbWrSatxnMr7DwL9IEx3jjns28VhKYjTZIgozrmi1H4pXSzi X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(13016025)(13018025)(8121501046)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148); SRVR:DM5PR04MB0508; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0508; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 4:3a35/Fgkcwss933bjqh1CIaCm10PK+Z+IwHsUMWKdNT5plov4KGkv4aiY1eIeu9NwmyHubuxl6LyZzKb+W77UDSKqRqe6rsXV5w965jxgWxLmrV1QmLivrJtkvf4TOtXv6ItPHQui8p6FGJWD1fHT7gFJpFLgbeBEpaFmRIhrrmop5nkpJl7JEQT0qhrnnKGWpAd+6geuZbh+P9gbegMppewiOOIoS25l8nwRgE7O3RPSvgFCnnGnpIV8WWvp5pwMU36pYKn+2rb2DCL8rnUG48/p0Gpcc1sG8ZlUZWASyiLc9alNpb0xm0yFlB7uXcOejI4Ut8/s3p5mnpA7XuHii99BWaHMy5ofCIg8H+uFpbpgKa5raDISwcnc46Ql12kHthNvT8xo0njP1KwmJNdOMSBLcknVaAWYXo1uwGf1KSuYmHkn0N+zdmD4naUOnAHQ0jMcQc2H1OTaIYLiFBEQU0Lrv13y3E3znKCoOGkMSRXXxfwIk/hCAFVuykVtZOAerJUnv6YiowDGKddsFMzO21On3NgNTIXhnlkXVJS0YUVT0K1bkBM2j6g77C7FK3coIewRQclYhgLIJSF1LYrzQeKhaK+0c1fiCDTl5VcQy8IzXqHAVGJRt7+X1YnSHJKMXunU2OXYXS7F2F00C1G8ENcsxjZ+o1ENNoPqKPNonE6bm3PdoJqQ2ZoSbLUWgTJDw9naDGa5EwRi/UFiyen2WAiQHeuhfXY/LpDOPcgilmA/VzUnuAi2WQPoJQBy8NAqR8bI5tsRVt7CcX0+HrpKusU8vi/1NK7Rl4foLRxlexxISo305dD2MhUx/pI5zGZbj2NQ+UHfk9Vyl/OQVJysi+pjhNqI0KOGjvvCc52f8yc7wv0uSd5xJjqB/1eAVtN X-Forefront-PRVS: 0316567485 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0508; 23:P2CwKxE8jAaVeSK/9GX9UozGyzu7H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Yso5e/bzF4+nscSr3kpaEiCyZgAMdQL3fB1Mj2+BY0QBWHIz/21O9LEU6WzI7LnGCk56jszIUkibn4eKpEhtHq9bQwpdNUEcDLeg54= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0508; 7:U8g/xtJyHeO7aq6AaxvdoxVtEEvm1CWbwM7sy7bX3It3mSOGeCzwDC69VtPo/0+cXXPtR6J6QfS8IJuI4XRyqW97pWugkVLEYOXS/O+futgmzYrrq09BR9iabmE4+uHCsV4zM3pgWNzz8FytJ6J00V8zbu8iKpKFwlCsk+iLV94H9irdktScJP+iybA6yelztE1R6fBQdhqd+JdWXMdHLyEY7QhwwCnXzIkmYiWol3IbWmo0FvKBkem+v1ERsblterq2ubuGEVYaBB1forV7RjwH01ojBo/TDCUMojnKK7nFnSHMVBev6ah9P9Fnp6lTmAPIkBO9JKb5eNWqLrrC4g==; 20:XZ/HD0H+5neUMFwqqaAjS8LCT88i+cdNRXMRTQfm5HOTg+blRTxZc0YEpOhEareh7mn8ctH3QwDPw4nZhTJqqa8PLhOQbH74MTWghYEeKEMl1ELkCLeBQWNb5T8Ok+86DdIhVAeXPId0kHR43thq8EeFn6d9P0NOy0UauqWncUg= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 23:49:02.0635 (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.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR04MB0508 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Bart Van Assche Reviewed-by: Hannes Reinecke Reviewed-by: Christoph Hellwig Cc: Andy Grover Cc: David Disseldorp --- drivers/target/target_core_sbc.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 51489d96cb31..6517ea2c3859 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c @@ -852,6 +852,11 @@ static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, int *sectors, *sectors = transport_get_sectors_10(cdb); cmd->t_task_lba = transport_lba_32(cdb); break; + case VERIFY_12: + case WRITE_VERIFY_12: + *sectors = transport_get_sectors_12(cdb); + cmd->t_task_lba = transport_lba_32(cdb); + break; case VERIFY_16: case WRITE_VERIFY_16: *sectors = transport_get_sectors_16(cdb); @@ -967,6 +972,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) cmd->execute_cmd = sbc_execute_rw; break; case WRITE_VERIFY: + case WRITE_VERIFY_12: case WRITE_VERIFY_16: ret = sbc_parse_verify(cmd, §ors, &size); if (ret) @@ -1169,6 +1175,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) return ret; break; case VERIFY: + case VERIFY_12: case VERIFY_16: ret = sbc_parse_verify(cmd, §ors, &size); if (ret)