Message ID | 20170524003420.5381-17-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | Changes Requested, archived |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 432C8602A7 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 24 May 2017 00:34:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 36B3528867 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 24 May 2017 00:34:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2B8142886A; Wed, 24 May 2017 00:34:53 +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 8689228867 for <patchwork-linux-scsi@patchwork.kernel.org>; Wed, 24 May 2017 00:34:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763457AbdEXAev (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Tue, 23 May 2017 20:34:51 -0400 Received: from esa1.hgst.iphmx.com ([68.232.141.245]:56500 "EHLO esa1.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760517AbdEXAeb (ORCPT <rfc822; linux-scsi@vger.kernel.org>); Tue, 23 May 2017 20:34:31 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="122517436" Received: from mail-cys01nam02lp0056.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.56]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:34:29 +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=JuloYMhWIMfQGlflRN2a/reJG1o0h9/mMjxI3AAGETE=; b=F39woDkOrkX99SYyaJx+xTk86el70HKnCWRAQuN9fANjpygS0kStWUSgDgQDxrNSdlis/XFUFoOFQEXDzGAKbKC0aDfbwRYihV7L+yK3ztQVGQTaucyEJG2dtuNSD9Dd/XzLbiN8DrpyCl1YjCsL0rCySeJGiV0ASBYbkOBwdEI= Received: from BN6PR04CA0057.namprd04.prod.outlook.com (10.174.93.174) by BN3PR04MB2305.namprd04.prod.outlook.com (10.167.2.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Wed, 24 May 2017 00:34:27 +0000 Received: from CO1NAM04FT056.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::208) by BN6PR04CA0057.outlook.office365.com (2603:10b6:405:3b::46) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Wed, 24 May 2017 00:34:27 +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 CO1NAM04FT056.mail.protection.outlook.com (10.152.91.198) 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; Wed, 24 May 2017 00:34:26 +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 59.43.45291.215D4295; Tue, 23 May 2017 17:34:26 -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 17:34:23 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-fc-5924d5126f7c Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 65.A3.18148.F05D4295; Tue, 23 May 2017 17:34:23 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: "Martin K . Petersen" <martin.petersen@oracle.com>, James Bottomley <James.Bottomley@HansenPartnership.com> CC: <linux-scsi@vger.kernel.org>, <linux-block@vger.kernel.org>, "Bart Van Assche" <bart.vanassche@sandisk.com>, Hannes Reinecke <hare@suse.com> Subject: [PATCH 16/31] scsi: Make scsi_ioctl_reset() pass the request queue pointer to blk_rq_init() Date: Tue, 23 May 2017 17:34:05 -0700 Message-ID: <20170524003420.5381-17-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170524003420.5381-1-bart.vanassche@sandisk.com> References: <20170524003420.5381-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsXCddJ5ka7QVZVIg78rJS0WvNnLZrGxn8Ni 7y1ti+7rO9gslh//x+TA6jFt0ik2j49Pb7F4rN9ylcXj8ya5AJYoLpuU1JzMstQifbsErox7 XedYC3ZzVsyat4i5gfE1excjJ4eEgInEs+sz2LoYuTiEBJYySdxbe50RJCEksINR4vCmK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u/i37Oy9C5 OcWG3TTi3t27V8TmnCp/3fjkxK6XfBuexOfu2JjhzvWgdpPQz0k5T1aW5j4//Np44b5futxz lFiKMxINtZiLihMBXo4/trwBAAA= MIME-Version: 1.0 Content-Type: text/plain 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)(39840400002)(39860400002)(39450400003)(39850400002)(39400400002)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(2950100002)(8676002)(356003)(5003940100001)(81166006)(1076002)(48376002)(50466002)(54906002)(305945005)(53936002)(47776003)(77096006)(6666003)(76176999)(8936002)(38730400002)(478600001)(50226002)(50986999)(4326008)(86362001)(575784001)(33646002)(189998001)(2906002)(72206003)(36756003)(5660300001)(106466001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR04MB2305; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT056; 1:zhrSJFJ5tsBo3FUf7PR6tqgdrGbZNbVCbog4d1SpKgNfqp5tfx+S2SZNq3//sXVxNYjKxecWfb0/48hGvkFImHrgw89DOi2zFxzwHG1kbJ50rBv5alJoFqb1OU2ddTML+XH4ij2EdgifroxHrxgNw6RSVlYBDVgm8jkUzKElJ04RWzJWGg8IGDW5nKjB7eP7wB77tNJ3LcC4YgxlWfRVSzPJaTS4HJRiT5nG+YWwRiq0LAPpWmgK94+pra+MT0gA4jVv2JgMWLZG7em/vERu1L7QsPlx66E2853xmgEf9bF64FsOovPNheV2v7jujXT9vAyjf9Bk+QN8Iux48q8JvqOfH99nNqb+N9kB9bX2yfdrQDwakd8vzYfGWE2sjm7gIP09t97PHcUCRjTiFcR3tGQJtHo5nWfJVFKsdj6I9ZfTHFVtdOQ54xQ0dxtJNGy3G+4PNNXtsgBfLPeTd6HAZsLLY6Qm1vVpWT2pXZfjr9mha2nQTV0ox4Jc5cE1TP4E6gRqU0nQ7DgHbQL3WEIcCLL7zj2+zuLWCSEwOBbE9vY= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR04MB2305: X-MS-Office365-Filtering-Correlation-Id: cb51ee5b-f295-4ae3-7356-08d4a23ca24f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BN3PR04MB2305; X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2305; 3:5HP96VXz1dSSGzxUMXeta+lsV+T0lNkvf43qoFZu5Er2ZNUTBpj0kN+NF618xAlM1KxkFciBdl8xI04TWdKtcnX60rOGW1EdhfuETvt4sD117OcVKwOVZl3CrY/WgpS9HS9+D2VjSveq+w7k5StRyLwo6NiOyInU80K7D7mUa45VIgi2Bn1yUJ2eN3FBWl14HgdompHu69ddbCuW9s0EELa1Z7CpkrXxiMKU35GDTi2Gd3JJvdSHqou4THOOwj7z+/XqQxT9mNTcfzKbCnplB9J4k7lCAP+l/LG5SNrvkJcp2wXWeI6RBvCGY/SgF3JkiE/H10yiQ4XUNFRc31ywA0z16V81lxJES9mKdajw5ZeUL572GvNeaZ6m8f9GsUhpbmzpXFQT6U0u6ky3QkSwMCKLbtNP1NxhWICIeNWE7XyaRtFM9uO5Cncd4iuFEib3kst4euVfqxftejuiWxB8L6Abm3IKq2CnpZ387462JKj6HHnjbUhkAxVWgdzWjc0H X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2305; 25:DKgL5G+QEmPP4hRO0EmXJHhq5MY9vCo/yozBjyhekL5hMT0PQcnwu1dJyVCPVmV47lC8x1nA5cZSLkyN4YZS+6VKWYd7rdIlpvkc2ypXzgy2G8UcE2BnF4YXF3kCjrKuhS5BtD6zfE5fBTxSEpOgZ62SMgwL6iX+2Iwlyf+VVh4Y5csFNTibxbq//2RR4XznbTOzC0okXoGl0OVtI8c5UP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Lwnoy6dP6NdLGWde65+NEADJvPaQTkYZudYavEU+d55s43TTtBPbwFZlKA X-Microsoft-Antispam-PRVS: <BN3PR04MB23054F7BA954CB7B856EEE8081FE0@BN3PR04MB2305.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700052)(100105000095)(100000701052)(100105300095)(100000702052)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(100000703052)(100105400095)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123564025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(6072148)(100000704052)(100105200095)(100000705052)(100105500095); SRVR:BN3PR04MB2305; BCL:0; PCL:0; RULEID:(100000800052)(100110000095)(100000801052)(100110300095)(100000802052)(100110100095)(100000803052)(100110400095)(100000804052)(100110200095); SRVR:BN3PR04MB2305; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR04MB2305; 4:JBd5gWePqA1thYyiwn0WJLcVZW3flf8/e2CDMI0FV5?= =?us-ascii?Q?2vkF7TVMOXJcnpIlh5rfB3KTmcva6SeZ1KyePgkaIrM2Ei3SIK0vCwOiSNXn?= =?us-ascii?Q?C9/7pyuPNlGixwO/+H7QRH+ZCSZXVUJSJY0T6SVehkP7dGCn3Fz5xccMv5TH?= =?us-ascii?Q?KocbeIIR9Ah9cUOsu5zvFTE6r2F9rwNG4LoweY+nSGFFnTKyllLH5Y1d+kQ0?= =?us-ascii?Q?qxWpLr+8r3ZTUNTO2zqVNrPXoqpqGMzEsXGCmu0uIQID3kIKDx6KamepNINY?= =?us-ascii?Q?43yZSMGb77+W4/iWdk/vPp4rKs93BnhKsUuJzks+vePrI/ceFuHB6f0FTPlV?= =?us-ascii?Q?FK0b3xkK+yx85XBm6mnljmtojt0cTfFoEeDzfPYN7Vm7vgrPCFezTw4Tjvpc?= =?us-ascii?Q?KKYrvlamS0TSomSOeWZvFR8xKk4rERR4uWPcJnb5gS7PaqtuohzbyvimDOB7?= =?us-ascii?Q?YDpss/g3Xqk4khi+3960KeAKUpMLyZLanpSVauVOV6MzTyDjU6uAPkEUyiH1?= =?us-ascii?Q?V/5qNicvLMVktnjOlgKlJLgAllJ7phNV2vNM6U1kWUAmU8PKk0ZG5Gah1RQR?= =?us-ascii?Q?QSCumQ8YVVp3pWP/jor7t0O74ZWyDZSEmvFl0AkSDQTsnMbvMB5tm9gZzH1d?= =?us-ascii?Q?o6c7dsaA5zHobXuvMDn2GhRYakgr7NSIWOW58k5lxp21aPXvt546LfDAZT3g?= =?us-ascii?Q?M+o78ggR1RWLc9P860bdhecCv5FGas6cRS7o37187lUWQ/HFgv+VYpke63Wv?= =?us-ascii?Q?EMnD3WoH7zz5UF2xp1vhDOuV+zKkIS5QHmk/yO23M8eGZW2i8bubmkbGtN6U?= =?us-ascii?Q?O/updPUcJq+WDtnWV5li3MT6IOUJ5J+WlbZIu8ovMMq3U1f1OeXhZQnh2jgD?= =?us-ascii?Q?YR3GytBtAtbOzkQHIkOblHSYKVb7LnL4FnBIdMXu1ozaKTyWbo05nfXEXMD2?= =?us-ascii?Q?zXc5FMlZasEeaoMAMWBucsCYFJMVwywGFSHxxXKVtpl0x5f5NM+GkNMgKZhn?= =?us-ascii?Q?kmtVk8x68Uo0vxH2ztvGGLVNOxnnEI3lvXiVTIgT/RmLy2oRw32eCLgBLlpQ?= =?us-ascii?Q?9+KY3cEPZ9cNGiJcoba5HsijWqVetzb6ANCXVDRxleLuC4SEoIs/6INrEogF?= =?us-ascii?Q?MyWzZbMk2lxrz9NIAZpKUhVin7cx0i8XU3pd8SCpLnssXTaACuyzSgsmtopu?= =?us-ascii?Q?qhDt2aJtcKS7Y/PvM1c/4lCxDrR25kG1rh18sU4nv9geGjPAFiD+cpesJkCm?= =?us-ascii?Q?tECSeeXyihYXOAiUQ=3D?= X-Forefront-PRVS: 031763BCAF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gboxNbt3nW17tRqRTVzg8xdNvhJHHCqg4pzDZTghjSDsqntG6B2Nrm7Ac+6uTRtMcyXZkRTBdrq7+dO/W5OpBTvJKZ9xV1V55toYWjqbZx+AtUDUZdzkehSeQT9UlFuGH1gloRhncw1H7HOahnEwmXRdzr9IBuehnx/1wBNbUg3KQaIWTQz45JfHhbV5ykZe15742PFqfXamMuVIuuoBdXVqlN66EnBNVv61LsQQQlcQ7jawcXXqtXKGgya5niM//LkUvOVLUVyWPxjRtIhCusa6OqupzMjH1I9WSid4+DRPQetxMlRvnyiBlHjMaVNyMsbwiiz1OHM1ohw==; 24:2WyJJelmbQYv19eAwPQDo6asQPVXWauI5UeUMRt86Vy/SS7L/MWFmfd0iYW4bkOgsMKFsIeK19jW8oweNQUgvL4dnrwucKE+rjgX8qEhMuU=; 7:W0F+ULQ+gSynEXZyqk3G7ZITLYslYc3deUIXes4K6cc4YM2UXbQUhn/rHgg1MTb6UPHFdo1T9UNGptByW34Q+nexCZA+M7TEReoclEwzIzt1BrpVRSJ5LmADV/kHnMhQy85Tyy3VlPT56bwLEGqJ7L+Bl2EFUzkfb7ZqupOCqqGyC8ykKnJNsnoAVLWsw6KT2Cg3fc1+Xj44GvHPhOzOb9ucBdaLC3DGHiCsH3Afqpwb7YOQzH9UNr89FZMMqcejoUL/cxPC8bHXfGW+A5jMXDHhSS5+crnEivsKarVkFLnnry/i89Trmw0diU2X7Pu1GIznMSFR+k0DxEjnDdHcew== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR04MB2305; 20:+PQh58g4YHUOKKw2KDjcDiRNardJuyv2Dw78B3Yq7aAVgI1IguCX/7SQYOrhwKIs59weVjneLJ3Wg0HxQ8CwdlK5mcG4MDCxIsq4OeV6dA6RDHJYyzi3yrs6CIwxilJzT2vnd4tI7uCgM1zK1uQZD5AnuJ/lGVZ5jbDC7yYelUs= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 00:34:26.7654 (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: BN3PR04MB2305 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
On 05/24/2017 02:34 AM, Bart Van Assche wrote: > A later patch will add a call to a request initialization function > into blk_rq_init(). Hence make sure that all blk_rq_init() calls > specify the request queue pointer. Since TMF callback functions in > SCSI LLD drivers do not use request.q, this patch does not change > the behavior of any SCSI driver. > > Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> > Reviewed-by: Christoph Hellwig <hch@lst.de> > Cc: Hannes Reinecke <hare@suse.com> > --- > drivers/scsi/scsi_error.c | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > Reviewed-by: Hannes Reinecke <hare@suse.com> Cheers, Hannes
diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index 7ba5f988426c..bbcc269f0ec1 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -2286,7 +2286,12 @@ scsi_ioctl_reset(struct scsi_device *dev, int __user *arg) shost->hostt->cmd_size, GFP_KERNEL); if (!rq) goto out_put_autopm_host; - blk_rq_init(NULL, rq); + /* + * Although blk_rq_init() is intended for single queue block + * drivers, this code path even uses blk_rq_init() when @dev is + * a scsi-mq device. + */ + blk_rq_init(dev->request_queue, rq); scmd = (struct scsi_cmnd *)(rq + 1); scsi_init_command(dev, scmd);