From patchwork Wed May 10 20:37:32 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: 9720643 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 BFD3D6035D for ; Wed, 10 May 2017 20:38:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D720A2862B for ; Wed, 10 May 2017 20:38:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CBF0528649; Wed, 10 May 2017 20:38:05 +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 65EED2862B for ; Wed, 10 May 2017 20:38:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753897AbdEJUiD (ORCPT ); Wed, 10 May 2017 16:38:03 -0400 Received: from esa2.hgst.iphmx.com ([68.232.143.124]:49587 "EHLO esa2.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753678AbdEJUh5 (ORCPT ); Wed, 10 May 2017 16:37:57 -0400 X-IronPort-AV: E=Sophos;i="5.38,320,1491235200"; d="scan'208";a="113492744" Received: from mail-co1nam03lp0023.outbound.protection.outlook.com (HELO NAM03-CO1-obe.outbound.protection.outlook.com) ([216.32.181.23]) by ob1.hgst.iphmx.com with ESMTP; 11 May 2017 04:49:15 +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=kRBIkMrthpwMi6475sFbv0AusYk1J6V4v6mt9cGEhNE=; b=PxcGz2IShiNNrg1M88WGESswOIyLjavvXlvf3CqfLEUY0v887+5QbJ8XpsXq7AP7Iw9zolDyz9WV+gUF3qcuMqLc4RevioXBFccT1cPG4eRery6tNBftNiNi1zvdLdM/qN2k/NNqMyvHiQgVS0ebGHBZqvpc6cEan08QaqVcoBY= Received: from CY4PR04CA0035.namprd04.prod.outlook.com (10.172.133.21) by BY1PR0401MB1548.namprd04.prod.outlook.com (10.162.109.158) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1075.11; Wed, 10 May 2017 20:37:42 +0000 Received: from CO1NAM04FT064.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::207) by CY4PR04CA0035.outlook.office365.com (2603:10b6:903:c6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16 via Frontend Transport; Wed, 10 May 2017 20:37:42 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; 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 CO1NAM04FT064.mail.protection.outlook.com (10.152.91.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Wed, 10 May 2017 20:37:41 +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 A2.18.29323.31A73195; Wed, 10 May 2017 13:37: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; Wed, 10 May 2017 13:37:39 -0700 X-AuditID: 0ac94369-1c3ff7000000728b-20-59137a1392a7 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 4D.3F.18148.31A73195; Wed, 10 May 2017 13:37:39 -0700 (PDT) From: Bart Van Assche To: Nicholas Bellinger CC: , Bart Van Assche , Christoph Hellwig , Hannes Reinecke , David Disseldorp Subject: [PATCH v2 2/6] Revert "target: Fix sbc_parse_verify bytchk = 0 handling" Date: Wed, 10 May 2017 13:37:32 -0700 Message-ID: <20170510203736.12462-3-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170510203736.12462-1-bart.vanassche@sandisk.com> References: <20170510203736.12462-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrHLMWRmVeSWpSXmKPExsXCddJ5ka5olXCkwaad4hZf/09nsVjwZi+b xcrVR5ks2lafYbRoXfqWyYHV4/72I0weu282sHms33KVxWPz6WqPz5vkAlijuGxSUnMyy1KL 9O0SuDKurdrPXDBHoKJlU2ID4yTeLkZODgkBE4kXc9YydzFycQgJLGWS+L3tD5SzjVFi0q1m RpiqrknrmEBsIYHNjBL7OtVAbDYBI4lv72eygNgiAjoSs+6+YAdpZhbYzijx9nMXWEJYIFDi avN1MJtFQFWi+e1tZhCbV8BeYu6+N1AL5CXObtkJFucUcJC4OmcFO8Qye4kbXS+gaiaxSkw7 VgbRKyhxcuYTsJnMAhISB1+8YIaoV5c4uWQ+0wRGoVlIymYhKVvAyLSKUSw3M6c4Nz21wNBU rzgxLyWzOFsvOT93EyMk1DN3MN594n2IUYCDUYmHV4FLOFKINbGsuDL3EKMEB7OSCG9SBlCI NyWxsiq1KD++qDQntfgQozQHi5I47zmZqRFCAumJJanZqakFqUUwWSYOTqkGRtmN/0wars+P yQg262AqiLoZ/0Gj7W9CQL3s+lUX1vvxdBdueJC49YdGPKuncPIjgfmWBw8sUJO6o/DTR8P+ zJPgBonL8krt0xzSuXYG7luh6uL8ueOI/A1Pyfvzmtbfef22POtltlrimh8Lvz7c3jHFa3bl pW65CY5qSVWSbE32nT8nGL3fp8RSnJFoqMVcVJwIAFvpKmtxAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrHJMWRmVeSWpSXmKPExsXCtZEjRVe4SjjSYPY3DYuDP9sYLb7+n85i seDNXjaLlauPMlm0rT7DaNG69C2TA5vH/e1HmDx232xg85i25jyTx/otV1k8Np+u9vi8SS6A LYrLJiU1J7MstUjfLoEr49qq/cwFcwQqWjYlNjBO4u1i5OSQEDCR6Jq0jgnEFhLYyCjxsCsS xGYTMJL49n4mC4gtIqAjMevuC/YuRi4OZoGdjBLr/55hBUkICwRKXG2+DlbEIqAq0fz2NjOI zStgL3HrwTImiAXyEme37ASLcwo4SFyds4IdYpm9xI2uF4wTGLkXMDKsYhTLzcwpzk3PLDA0 0itOzEvJLM7WS87P3cQIDhHOqB2M1yeaH2Jk4uCUamCc+qDmUei2Fa9FbjhLdQp154X6tx/d Vpcswfj2alDCWtVZc9cpHq563ZtUIPb39vuF+1YVaKnezi7MlX1ofeDWr/+8KQLrpk7iUprw 4lbJNa/XG/LWCD/w7a2aKOzOkBp++9mN0/GcM0z+J5buuf3Ba6J6f8LBZR8W1Gz4vUcvY9Od oJu7OV/vVWIpzkg01GIuKk4EAPTx80rBAQAA 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)(39410400002)(39400400002)(39850400002)(39840400002)(2980300002)(438002)(189002)(199003)(9170700003)(81166006)(38730400002)(110136004)(8936002)(478600001)(50226002)(4326008)(33646002)(2906002)(72206003)(54906002)(53936002)(106466001)(50986999)(76176999)(356003)(8676002)(77096006)(5003940100001)(5660300001)(305945005)(189998001)(1076002)(2950100002)(6916009)(48376002)(50466002)(6666003)(86362001)(575784001)(36756003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY1PR0401MB1548; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT064; 1:MccIQNsxsKnMw+T7KvC1XCS7pfg/2QPSHWCz9GeNuw1wv2bcC3cDbwMAD+x3IDxdgXrMGYzsXj+omOlBiNJ0kLPqYNQOzSNR4A/i0JTtC7XbJVxeymreAHp83ZUBtAd9g7bBG1IAvM9iYHIkQGVX/BWIXdzZ3+1BPc+CXeggXZkP8PQqkrRjPCwAdhKTH08FGZSUQjS2l9LQGHS8BshH93b8G29F80ZLlg+4qq6Kl1nGABGtAVvxU6Hf254MtejaxWIpyGzYNgZL6CZptqyrWVrBslza1JgjJRGh8bf2Qyc65I/G5Jq3FoAZ9nRgXMywnCUp5WRTUWwytume1qdhrku6cvsn4X8sXI4/2U7I6FrToCCzosvMs3OKrt/+r8N1V7lA97Zm+U/0F0WWkxJFB/47afn2a8Yw0TixiPRS04R7KSqGsmSvVgQxuFeM2SayrrTZnf4n4ObT/wJq1KJflFxuim2UtZyMQEteIpkweJr3Ad3hg34qe2zw8b3xGEYgWWXynzmTJFsTyGhk62pzNZVJ7O9UQo5U4JYN/XtIw3M= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bd91ce2a-8962-43d5-1229-08d497e467f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY1PR0401MB1548; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1548; 3:IShI+8qbSuS0ZURcHsMjN96kpf//bBnIlg9uKTSr9meoMdTLEcg287Gw2sPN6kI1G8zhPWTzerFFFgFCl/4wzwvQo9DEe1yAXooHjZwcyGb39XZKPvZG3iKBuKa1eKqX3v8R20KlDbbD6izuoy1mWWufzww/TpOKZQERfq+oNrARSwVO+LMO4NiBzbdZVL8YLzrkomZZnhlE9SaY8S+bHigOkAkykWF9AV0pmgBDqbHguM5xAGmTfAv4w5Mu9XwRrYOW5BjQw4pAEUba7cEa6hJeFf5kJT3+ukTGU2KsS9dE/NEXAW/BYqRpl5Y5dE6AcRoKMncltTrDgR05gvI8dYsz3buV8GSj3FgZuW6aAD+IN8W6YaA4iq248yxxHe2bJ4TeTaDpboyNu6WzjG+QpW7rthQUmw7qbyJUmp5jZpeAIW+luE7Vf/04WGY+1S53zyasAdiW0uTM3zfLHC19Tf9E6xAp7EG3YgnlSwOOh+lZ1jEkLV3WXOYnwLDh5Rdo X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1548; 25:XPGkgKZBztaDJmKLjEJrchwviywLh9jQZqGtrHCOOtNO4+GY/2UV5y4zOoE8mLqaEJvNzRs+x5INcudIpAqUfnVQky96LUKOJBeeTj57kuJcDHrZLpOavG+YIggsKXdXzniL+s16JcFpy+D3c3I5AQgYLAAuiik4tocQFc9xYf+PGetIPKi+jtMldwSVoWN67H4hKzESmreQyTV/CDK0mQXhSaj5V21Zyy6pM/CFh+TzjklPBdwL8FS7iINmUrv9W2GDSXyaU4s6mWksyuD31lQkiSWgBs5mp1cdinml854fb61TotrlCX24T7lsN3csfBKd5gdew6YbfeOIQGfGVMp0WVNt1dmXy1C7XhUpsWbfFHxpQsYyqcqo4hWODq7JzgE1vR60jw3ScDldbCAnvF6/Ie8VjpNsBcH+3ywaaXwTlbALt+l+fCa3GP1SCYv/awLYNQ+X2M/PQFOklk7p4y8yfNmzZaoUr+rEaz4yAaY=; 31:uCbpS8VxDQHUTMuglnXvx9kE+VWOL9YfORtPxlSRvV4jOd6ue2XoMBR/tuvIMt5OKecgqmek7Z2ndNt07eALEN5sAUS1dwkKoXByjhdR6cjPxPquRGLZ0UglXhgm/5B/JrD7RXU8YwqTA52qhazgA977KDb3LC8zBXa/D01SUJeJi0dHXnrejM9q0n3PRQlG/iBAB1qsF/Fv5SrDRMbro4GlSo59bnY7Gt5/ZfyOaCj0Xur51q2eLHg1Dy1857bquDJKjpsyc3wbFgqGrXhRtA== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1548; 20:X6wr0WELF3mvYa8J5FG5aEjD6vNTcP0569DCa+fcdNb2xCvQTCdIv/oIpgMXz9JvuilPU/cMpBZ/4J0fiA5jhqU7X7rtkDG9t4wzkPJ/d6Ov4Ozu+Gi7mgtu00IbgrU6aiPvgddWh/ZTvTl0bP1byTsnwk/y15c6wE1s0gk4GlXsKsWQXAmO6gdS/7E1WAg+nuZp2lKqUi/PbTgUSg3xeMK58HQvN7mBz0CBB8z82iNoGwVTFmyxq7Ou/iox2TUh9FVHbSDvff6/hDBB9F5uWnXZahpSdfNDjk+8Y1n8dX6IXlsvM+GoW2M28YVdEY9kqnOhLwqqH0GT/O3dBfpUk8XhhfuHVqBSfa7hkwUB64QyUbqFKCro48S2ix6ya8YJ3caA9Caw4Mzu7DL6SaJh3XIQiWv+lPRb7HU5s+orCCvwAtYp7crKLJlFY911/leHqemutJQn9un1BV6csw6GZsbov/CKWa4CTYgTY1M+QW9ec6Zw1jZG1zXZOC/nXy91 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)(8121501046)(13018025)(13016025)(3002001)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148); SRVR:BY1PR0401MB1548; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0401MB1548; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1548; 4:+Qfy859ydx6AX6Ujnbr9HYMcqN20pgu/66qmIwosMCNyeuzcsuU/kpAcfg5PTynKnlFbn5UWMDYKIJbF15kLf3f/9Hl5G961pz0LLMSUdlB5JiE2fvPwX+6f9wRUyr65+NW/uCs6GITCxQYtkcGLPdZEICIFvDQInx2pvu32NULkyPrYIchQSkRPFEdxa3DV2S3fdHGt4RP8WBvypsrn8FDgiPeSTgiuldT4WE/GOoyCQgA8bUsv0ZE2RaipLMYQBIqNk017mCkcVlcoltB0VQ/XbOg3BOOqT87R78hX/OSW6cOydkV+afRPwg1Qjrfyu9dBt4ZkaH7KMewoqQEXVvUunv1zuklkUdK2bdlIubGL1DYuLQ1N7zpfrdFtwhG3qJaAwQC/wTCPrnNhicbW1Q3C1pmbvLovAN2B4B8DAkBdUiim/8Z/Nfp4uqWSLf9OZVAkZ0Wia1q39VqRnPYkkVsrK5EPOho+oKDnXSg8/Sa2qt9aNMB+TJy5IoacArz6BIxNx7VhiINwC5IVFsVjP+zsDR+pLZ3zaVUg3WL/maV5EedXjso6heiZlN3KKLHsvysMSizs/MiadZKLf/K+vYE/HAZLFPKmFhiH7D6NcJLqI4TPNW38MXUo393yJsls9jBtGybxB0nInr1VudxlWrDIDDpK/sXStlF03fNowGBVTCAk2bHdQY9GYOrN851K0cyk1w+1q1RHUPj05NwIfAA3uQCUH3WaKJj3K5i3aoA6quDF3MldosQ3uCh+ebIEGdzvqQg0dwPHT2y9c84IsMf/6IMz6ZjQkETnRkO3rt+zR0mV1c0/V0WdtsJK3lNMaObPW5kJ6QrvaMpGtXYmcxDmNFwYRHQNXDw0YytzdNDbLaNR4gXP4tx8mAXuUCYx X-Forefront-PRVS: 03030B9493 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY1PR0401MB1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ccP2LeMDG4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0401MB1548; 7:y4NE9V7O72owhF8EbGgtFtohd2JIgmtxppb5qJCfZeny9BMTQdgs0ZgJtXSeFcBq/cWa8WHbFt2SoZDsWgHDaTzO8oFgEdxB1BT0sATWbcDldaqk3hZU8L9fKOOK9S+e3Rbtinlyl1dEtizV7FZTU4vRB7Eh475wEf1WVI+/hm1BvHxY6lb6cGGMDt70/lrO2eKeVntP8hT/qPKBi9EPYaoK39pCVvon+yZUiVpRV8jI7qBgVM39yRtfvPeWkKjzxXcTZyUgPkMAS2FlTe1rDskZXRF5Jv/6bVDtEjAAvxn0BgAjFM9pEWuqKV3nMFZSUkxCutNmzFTqgtzsKR9jkw==; 20:Jsw4JplUP4QxINUdThV0/xdhsTughuq1yOD4P6rLg7oT1Qh5gxflKblwy3s28p0n8XZdCMaQ/A3OJdAS5j/lzU/hNEAPjLEDXdLA96H7c52yImwwXdqzqF9cIrxlP/US39IDGWXknsj7GhnIb4Dmd+DL+zLHB2OCub4/wgAFlvQ= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 May 2017 20:37:41.5147 (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: BY1PR0401MB1548 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 Since commit d7d40280f868 breaks sbc_parse_verify(), revert it. Signed-off-by: Bart Van Assche Cc: Christoph Hellwig Cc: Hannes Reinecke Cc: David Disseldorp --- drivers/target/target_core_sbc.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/drivers/target/target_core_sbc.c b/drivers/target/target_core_sbc.c index 2cc8753eacad..a0ad618f1b1a 100644 --- a/drivers/target/target_core_sbc.c +++ b/drivers/target/target_core_sbc.c @@ -836,8 +836,10 @@ sbc_check_dpofua(struct se_device *dev, struct se_cmd *cmd, unsigned char *cdb) * @cmd: (in) structure that describes the SCSI command to be parsed. * @sectors: (out) Number of logical blocks on the storage medium that will be * affected by the SCSI command. + * @bufflen: (out) Expected length of the SCSI Data-Out buffer. */ -static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, unsigned int *sectors) +static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, int *sectors, + u32 *bufflen) { struct se_device *dev = cmd->se_dev; u8 *cdb = cmd->t_task_cdb; @@ -869,7 +871,10 @@ static sense_reason_t sbc_parse_verify(struct se_cmd *cmd, unsigned int *sectors switch (bytchk) { case 0: + *bufflen = 0; + break; case 1: + *bufflen = sbc_get_size(cmd, *sectors); cmd->se_cmd_flags |= SCF_SCSI_DATA_CDB; break; default: @@ -962,7 +967,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) break; case WRITE_VERIFY: case WRITE_VERIFY_16: - ret = sbc_parse_verify(cmd, §ors); + ret = sbc_parse_verify(cmd, §ors, &size); if (ret) return ret; cmd->execute_cmd = sbc_execute_rw; @@ -1164,7 +1169,7 @@ sbc_parse_cdb(struct se_cmd *cmd, struct sbc_ops *ops) break; case VERIFY: case VERIFY_16: - ret = sbc_parse_verify(cmd, §ors); + ret = sbc_parse_verify(cmd, §ors, &size); if (ret) return ret; cmd->execute_cmd = sbc_emulate_noop;