From patchwork Fri May 19 18:30:04 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: 9737935 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 8387D601C2 for ; Fri, 19 May 2017 18:32:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7C0B12856F for ; Fri, 19 May 2017 18:32:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 70F032857F; Fri, 19 May 2017 18:32:27 +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 011552856F for ; Fri, 19 May 2017 18:32:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756316AbdESScZ (ORCPT ); Fri, 19 May 2017 14:32:25 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:34979 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755986AbdESSa1 (ORCPT ); Fri, 19 May 2017 14:30:27 -0400 X-IronPort-AV: E=Sophos;i="5.38,365,1491235200"; d="scan'208";a="18913366" Received: from mail-bn3nam01lp0177.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.177]) by ob1.hgst.iphmx.com with ESMTP; 20 May 2017 02:30:25 +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=QYgtjUJInr6revjs1paHcq483N0/CcwXrdf77bOGLHc=; b=SUqgdzzb5Vlqp2SDevI05BNACWyEta5ULTTmIaTlFqvF5wtHThjUW/Cuv5ZGWnTuXJ7k6yuxNslOiZd+dbyMhd8VvTWyqvDw+LPb/HSF/ldChgjbY9DkzhiIJsV1QO6yS6aaL8bCvIo2uJ7KUjwMqEmKmpzU9E3khtGNmCT948A= Received: from BN6PR04CA0001.namprd04.prod.outlook.com (10.172.194.11) by BN6PR04MB0357.namprd04.prod.outlook.com (10.173.198.138) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1084.16; Fri, 19 May 2017 18:30:22 +0000 Received: from BN3NAM04FT015.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::209) by BN6PR04CA0001.outlook.office365.com (2603:10b6:404:cb::11) 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; Fri, 19 May 2017 18:30:22 +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 BN3NAM04FT015.mail.protection.outlook.com (10.152.92.170) 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; Fri, 19 May 2017 18:30:22 +0000 Received: from MILHUBIP04.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 58.5A.29323.DB93F195; Fri, 19 May 2017 11:30:21 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.8.100) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 19 May 2017 11:30:19 -0700 X-AuditID: 0ac94369-548749800000728b-9e-591f39bd6b74 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 5B.37.18148.AB93F195; Fri, 19 May 2017 11:30:18 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , Bart Van Assche , Christoph Hellwig , Hannes Reinecke Subject: [PATCH 06/18] scsi: Make scsi_ioctl_reset() pass the request queue pointer to blk_rq_init() Date: Fri, 19 May 2017 11:30:04 -0700 Message-ID: <20170519183016.12646-7-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170519183016.12646-1-bart.vanassche@sandisk.com> References: <20170519183016.12646-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrPLMWRmVeSWpSXmKPExsXCddJ5ke5eS/lIg+evNCwWvNnLZrFy9VEm i439HBbd13ewWSw//o/JgdVj2qRTbB67bzaweXx8eovFY/2WqywenzfJBbBGcdmkpOZklqUW 6dslcGWsXzOVvWATZ0XHrE7WBsZH7F2MHBwSAiYST19zdzFycQgJLGWS+HenlRnC2cEo8ftw B1MXIydY0ZO3m6ESmxklPp67xgySYBMwkvj2fiYLiC0iUChxaVsHI0gRs8BkRomZzRsYQRLC AikSd4+9ZAOxWQRUJb7cbgZr5hWwlzh+dDkrxAZ5ibNbdoLFOQUcJF4eXwh2nhBQzf2+epCZ EgLTWIEuWscI0SsocXLmE7DFzAISEgdfvADrFRJQlzi5ZD7TBEahWUjKZiEpW8DItIpRLDcz pzg3PbXA0FSvODEvJbM4Wy85P3cTIyTYM3cw3n3ifYhRgINRiYc34ZdcpBBrYllxZe4hRgkO ZiUR3mgT+Ugh3pTEyqrUovz4otKc1OJDjNIcLErivOdkpkYICaQnlqRmp6YWpBbBZJk4OKUa GNe/9OT5rZw8z7JjhmVHPNf1hdopG4zdBXffm1useuVFoDjrZAmhL0ct79mkJkVNaNgfP33L vnMmDh1pytHNsrNS5vT/XRZUd29fvN7iLVlTdObdzz5e3bNz6rKNUYzH3s+Y8Wv23VJnbu3C gIP7v8h4GEm9arLprZ3k0VkzSdduv2FVydWSL0osxRmJhlrMRcWJAMF0n79yAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrPJMWRmVeSWpSXmKPExsXCtZEjRXeXpXykwZc+BYuDP9sYLRa82ctm sXL1USaLjf0cFt3Xd7BZLD/+j8mBzWPapFNsHrtvNrB5fHx6i8Vj2przTB7rt1xl8fi8SS6A LYrLJiU1J7MstUjfLoErY/2aqewFmzgrOmZ1sjYwPmLvYuTkkBAwkXjydjNzFyMXh5DARkaJ ptV/mUASbAJGEt/ez2QBsUUECiXunz7NBlLELDCZUeLjut1gCWGBFIm7x16ygdgsAqoSX243 M4PYvAL2EnNe3GOC2CAvcXbLTrA4p4CDxMvjC4E2cwBts5e431c/gZF7ASPDKkax3Myc4tz0 zAJDI73ixLyUzOJsveT83E2M4CDhjNrBeH2i+SFGJg5OqQbGTMkA8ZuW8ctuKNX5pJ2YcLVb sPdVqzOHSraBlVxl+1+pdTpz/gWWh97ZVqZYV7/aRHL2+yCpdR+vGwXbCJ1YuTTjb5iU+vZl tjlP+yyPGraueqIhKN5Rasje3WP18HGYz0TDYGWZLb2FWw4++DBTLWHlxtvT2YL3B3twcy1l KZ9wzO+kkpUSS3FGoqEWc1FxIgByvAWMwgEAAA== 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)(39860400002)(39840400002)(39450400003)(39850400002)(2980300002)(438002)(199003)(189002)(9170700003)(76176999)(48376002)(38730400002)(50986999)(5660300001)(53936002)(81166006)(50466002)(8936002)(106466001)(33646002)(5003940100001)(478600001)(54906002)(72206003)(50226002)(77096006)(356003)(8676002)(4326008)(189998001)(305945005)(36756003)(86362001)(2906002)(2950100002)(6666003)(1076002)(47776003); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR04MB0357; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT015; 1:8Cfde8q5feskE74ZiXJF8OLPA6gF8hcR+1RUz76czyGrDMPg6kdf7+zMI1eo51/PXqZeOJjtKmCU0cCc+yPjUaU7NtGWytNHkOOH4+rtYy14gXzw+YhbRkqUbrOeCVWJZhWicxw7KNbqyLJ+6B0PQRu1+WUB5ehZMIxpwoUUKOrhddHZg7/bds/OVKxJe7xtWyAbSY2yOZNq8RCO//+wR8gcdnu93FThLTViqlEgk/hx6NAy4+0QsKp1wHfwYzVPSprtYJ6A7H8BN8YPaOKuZSLqEf6KnobRovbisLS+5GwTuI6ctJCMc86gVxXdbbEUUcqaFPtpuePmau46AZAiRYZgzPC6Kwcvt68tg0rEs/DKfe0lWYyp5Tij5HX+lvfF6Ei/ki9x3bHCcJfKAFeg8lD4PUzwq6IXRwoZLtnam/5gfyaETPOBBHkHWQt2rDftrSvmkfp7QXzZS48eu19jJBDr3A/jDfmn9Y/3znJTHDRGNzzB3MulX53T80ipSCMl3cvyhf8J2RwJulqnymz+bZ2o7hSX1bqCT1xZSvRkn4c= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4fffad0a-2828-466f-6f48-08d49ee51c6a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN6PR04MB0357; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0357; 3:Er6VHdnlgh/eM/2Tw/txgIgcbVEG7L1ChZF8jy5Ol+4iGX8Nzavp5zCW3lsE11I/9fl7QGYtByzTjg06kfmPkzLvypbDf82mojAUBR67Kim27ttU7y8oB2oEfxD2RDkTyaLliMcj2dLJbBYyFPPRAuZwynHXsgehZdCl0BjtNghtTINV9xAwDd/MMCTtuIk7vrOX6dM2pf4nCP4ONr+z+KfHXqAojmm8hnBTPAjqXucW5vC8v1d/9fv3pm0cqfcALCUv5W09Uqv3mIK7wHsIcTBnI68qcGKDxDZX+9gPYZU6agY/Ri0EMBs24RFUhmbmgIAERGaWkCMwfWwr/6jl6sb1ryvmSuo5OZSYCGmoI42MhwiZKm6aUdBjkVW0ai3lr0TNQ9GsrRHisRpJww1117FqJy7fDsyT06vpgp8flAls+Z67bp6mFM/aPrHYU/UiLn6+vu+RMaa7d24F5JGG2uLc5jCWjyAWL1rybvVuS9M9SKccKqNCujK/boSu1YBJCBLPobF6m2ndcNsqxhkHog== X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0357; 25:uW1yCudxbi+/yYQtiPO938qWMO8boAateYMK8NxokugzbQWE4fej4eNM9ylrwhZUoCWq4c2kOmVb2X7KLcNtfC5k07ww79O3t4jEiDojTKtxm2/caQQmPwF6nmdWDYg2IJBjkwPDdH2rCqxbc3LHs+zuqXje/zYn7J8nI9PPMslI5JdDdnHfB4ClvlnmuHYZ1P/gM1FJIeGQ3MKnosq0pRXmMC7B5QCtKumNg5ltr/qrqzzYnmiHJ+DAi8id4pSE6FCk2p4+CpfmcaYIDGvYBccpHdUdtwn98ga2yfuZRBvRGzKjGE5WkgQAKZ8wawp30SUDXh2DxiVk+VDI0M+oxktlJQ8SDxmFrIbjkVBik7doPTYtFK6MhjupZarC8HF8Y9wQs2CbS5R+2awmhldBqS3D/f7kGT1ugUDj2pswkNZ3cp4wKN6JB/mRoZ3cNc4EVh0vmSgKTZi2IkJBB/i+d7SMRLTuSaCL2BKeVTCl98s=; 31:0KGkWTU2aYVsAYVMx9I7SwyOEmo6lG+B1z/oz+SrDrZBZmUArCNh5qYqaF8HN6oOPXOtkYBD6cVYtbWwXpqVU85D+MnzzR0caPxmt2afIfDTzsmNgzIrFa/pLlLzS1Jjt0MSnkI6Bb+MJf3/iH7qv8KqQwRzSjhItAgrYdMwVnAlEaWLthGIjSMDMhraNBVbnfn4/AupBnAmsrv8VaZ6I07fGFQY97NMeZajpu0pMfhEvQ/qQI9uB/c5QgcnHffqo/XvstMl+Idk4BQc3Ltq8g== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0357; 20:Yt/0mb/vo/yZ/tMagJ+UCNFiWSclFRb8qJ/sBE4uJVax3cXdZniwLq/EPpeQNOTgVd8ulknloaTC9ox9kYh5yQMF1YB4dBBlfo/wtvZGPTehp5szCofX2JWUlCQ01XGxYou1JSgCDCmdZK41HSJfH4P5xaBp1Ow6SS/SIpx7jOL+4ji0Jb9eiqcZ5kVT19CI3zrK04gVLodH6h4aNAd57SSdSiEtirK3my5q+W91Wp3V1R0I7QajsUrxioZ25t557r+8i2Uab7YRTgy3LmCIVEo0Gz9njgV8wMB2SPhkvpTba1xdTIWIEQxr6mvd8Qew4uu1dZeR/Tdp8+hZBcyF94Y0/2HolSSqm0xh0YFGULnswUyaX+dmaT5izvWEX9Lz/ZFuzmdpwdNcm1cPSYhEBimHK8RqayV2j3Kv5m5cFONQZuo8bk2VkmatmtuEw+iDwUV22NtFhDXrE89rgnGyeXXIU0HJmsqPwXymLK9b9S5gUdui5yo83vejauyUbJPW 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)(8121501046)(13016025)(5005006)(13018025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123562025)(20161123555025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123564025)(6072148); SRVR:BN6PR04MB0357; BCL:0; PCL:0; RULEID:; SRVR:BN6PR04MB0357; X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0357; 4:4KOvFkAkCn1fR5HUuMa62WGesU1fi+e7KScSGj+ssxzcnwg7kOlPSbEGkSW5KfjfezvSvTiMEqVtYx1kUlNT8/quC+lmrKJMG1lJjmOZDJDn/AhoqJTxP1doqnRG3uiqJen2pgHhSFR9IxcvYySaXW//arsnyrttMcquBGtKmyWC2SJs0OHvbY9jPMEZZzYYBtbYVL8jgj+iUEa1QF1nI/ZsiuNKoOw2lgazzZGhy2G+Ls2LfrGPE8qY6421Bm5VnVvdZsU3PFhug25GuKAiUTe6PKc45jQc+HN1rSnQZBNUQi4fwcdjDafro8IAw0N4bHoixtNiP9daptdhrSP0FTyK82BUMQ/GNvFDUx8MNz8XkZoGKVmp4ew6yRwWxzTdtMNo+rKGWP58p/+kgsJBZu+DDwMcK8rumRBArxi3S0xwi5KljeM6GpGcWml1b245D9Ku9Oo3D8KlkJC67ukpnt7innrn9Nwv5SyIl6AQrvT6YDw6ZFCK87LMFM9rH9NvJNWON4NuGkeu9b0ymVrE0YvCQB13nkSJJnA+Pk3DQzAFv8zvsOoE8KMWag0Nqa9j8goGLhMGoqAEj4hAa/2xgp5CjUTYVhBnWW8QebAe5lQ24+gKIbo4lIEW77QndhXwwIjmIeUyx+ErPtaT3WymzUxlaaxqY0No2M42mADtoByrDZ764y6KHliKQDxU5xzUdfPkybpR+tF/CVRjNC6U+bhbpvZW8NQP+x5mnel/R78+Bkm/A8M4IdxzED6NqtmtqknxtUS7JHUHc1yk/C1b2ZMu1CMnmpEQdKxLbJ5WpypESRKAjdJhA4/2vTnUY1PQz2w1HEbYGJvx8PJ0ossw8KsD8ldmCxSPCPV52KvqxrYcN08XQGVX76RBTz+ph8r2 X-Forefront-PRVS: 031257FE13 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR04MB0357; 23:XcVc4GsPop+62MsZn/+crSBUE7Q8Ro/KaLsGMQzoV?= =?us-ascii?Q?HngE7o1MYSKC9bVwnDKfkueUf3CO26DJefUNceDxv1mqQdXqAwSxdU0xnqSq?= =?us-ascii?Q?q1KJh3HMKA8vXGo36uTHB41UWbTzafXNXZRKDihsOi81oGzTyKx9NKdW4fxc?= =?us-ascii?Q?WNGspMs3YssPCbsdFn+17eC3Czcg0Exhdc8JY9kwJY/dLZZDnq9AGQJqh2vx?= =?us-ascii?Q?OMk/efcTQZifQQ9mYEpykzve63V6proT/QO49iqBuX4antEHHiQSsn4qjcRK?= =?us-ascii?Q?1qQ9tzpLidRFQvrWMDJ1VPe+5WWATMVc7vua+NP12XSo+RnFNMlnqA4i73Ck?= =?us-ascii?Q?cDi70AozTjAH9k2GXYbZETAlZC1rX7qxHSUCh4ZJPr5kNfAfKxP759Dvf5GK?= =?us-ascii?Q?Vt7+TXNNRRzkcuhpm1ft2sTzQoyBviD1pu2q8TXiw95fz3Zqu8grwAdXON+J?= =?us-ascii?Q?R6y3t/pAruf5ymVF9IDKQxJiXa7nRHfI4DB2LzwehSHYmFfi4vDDOINLJmW7?= =?us-ascii?Q?OWFbiPqpBuiIjendVcLFDPWGhdzVgcxKUyviFquMh+IQS30cjlo4FeyEq20Q?= =?us-ascii?Q?LgdZOUTe5VFAZr3witKb6On2h2Sm5KEAVPUux1DGTSrk3dXm4hdd95YLYiSY?= =?us-ascii?Q?w/074Kt5DvJyLreuekROpiFfhd1OZP3f/6X6kRRIaTEIflh0cJljbTH6210Y?= =?us-ascii?Q?Dll4Cwt5oyMMgZazTHfwB4nvbcDYgdXU2cacT0gH94xI8IeSAXy7KY0o0vSc?= =?us-ascii?Q?2b+d5B+1hI+NZM4vVSLbarhNh8dS4zKggFof5Ctr2V7WiGBshoQf5ljwRL+J?= =?us-ascii?Q?w7iDlWJSA9xq0noWHVs8k+4LzKwngSy1x3Yugg58Iw7VlE4F3tKb9Syz6FeA?= =?us-ascii?Q?ZCq9eySkQLP0qB36KMUCQgOFBumgHJDIR8m7mNAJnM97CY1vPKX9x9mkytse?= =?us-ascii?Q?g2yQmjIO2sgd1foFhzSyfQ5o/2498QLhkcrEVvb4hERvEDfSm/yQ7WQrZGOT?= =?us-ascii?Q?SfHGYgemp9IN9gGMYGP/6XibajhmF2fpfuCZO6e9oKn9ogTK91CicY4fIRVF?= =?us-ascii?Q?eysLSQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0357; 6:Iu02xfEp49zNEK39BLGgYFFkTFPFuHt6LL2zs3mC6bLtaMYFME80wrUUrHczFPZkenW/aWff3n7S471Bb9AomkCoXKaw9+s/pG4Ki7pkU7kOd7YnKzrpO6VDCww9BtOVPjFsLve6+IJGqXfaFHgc4KIVCR+ZVBLIg1y02f9q/aG+8qMKOlzelMzzH1eYohUrPQzNlO3Ilhon4c6XeMnjAoHl5pJY6HLe+75BYECc7yruNsv75pOEX+BnYZDRcqrOQF7U7eA9QRZTdsqKsUb5Qsc0arjasAdPdSdCdT9Kz8+WK3VHaU8JsLn6Wu5YTVY+18FmVGiYM3NLNVjbscsL9pc+uJa7YWyZYLx1dxeJD0/LbPy81bnARbuPti5zcbPSeaoHwV4blMEdXnMh4k3ylYkXL2GqRDdGgdtL6B7AhX3iKXGd3UpVj+rTNB0tEQdhjRtvxG8TY/j0Gks9RIBC6G+WDhgENAJqDHYMVHxRoggs8JlOJEBeNTknfeq5jEnLWYoExByrkum5u45tqJrlVdxyGvxj1+W+IXOeSwaMHL8=; 5:fz5H3DeRNom6kzFNtFWF19ho9CZsK7XF+cM4IOGUJSjddtw7fkC/EAImgezXD7y6WzrzL7Pi3TfXRabGXSQwt6RKYy0G1mBOu0uCBw6DN36STij/TAjv7wGdvM5M5sSaC4YNR8xo5LVTIT2Mfv+pjA==; 24:j2j9/2K18HoQAQemI/C5nxw/sEb/p6dxuYBqaRWTnXK147Y2mvAdDNsJsdC8R7sxnvCOYI80NP1AOenSUKi6uU60Q/0vthH2IM476tzi/FA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR04MB0357; 7:9XzUrK7Ft4zlkZqUajwI+Amku8YcRz2BTb/oO1eNEwY4RmHYffrQl/bMKGU6FKiMD3+xFaui/WC9Of7v6HjEMQOQBuQ1g/neLoWgZ5DnCaoc9CFl1J/5iFwC5EKCXSTqe2bLGsVwbUj84Df4bdBTtsEnrF2cumxjMHqgy+cJbaEIARqk/4nfFENxDv6R83YkbY8oRjCctd8N8d5AQazARKE707G0uvXetGNZkyWG6fy2pcUobn6O0YiqRzDT3SChmBcRaCqW7rUthiRAGpssNDdTeRpj/KAlk6MuUByytt49x2xK5hanv26ycV676hKelXtT7dwPJTEFDuHk0b3I/g==; 20:MiSFqJ+qhJ9V8Or+edD9zkngwgpm7xAfQsdDBoK53ciDbxHditnY2iilv3M0Rb3C/IHvHiL+OtnckZuN+rt9kdg5DBYeMvt6Dr6FlwGv+P3Wrt05aCSDteXJXUvEGUzhZNrUn5WvDV6YwhewvDIcEJGGjXTI9Io56ChLpWZZ47s= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 May 2017 18:30:22.2362 (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: BN6PR04MB0357 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Christoph Hellwig Cc: Hannes Reinecke Reviewed-by: Christoph Hellwig --- drivers/scsi/scsi_error.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index ce654e35b060..23d6f225c671 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);