From patchwork Wed May 24 00:34:02 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: 9744775 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 77D2360393 for ; Wed, 24 May 2017 00:36:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6B3632885B for ; Wed, 24 May 2017 00:36:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 600AF28867; Wed, 24 May 2017 00:36:10 +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 CCAC928865 for ; Wed, 24 May 2017 00:36:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1763392AbdEXAgG (ORCPT ); Tue, 23 May 2017 20:36:06 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:11374 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760620AbdEXAfC (ORCPT ); Tue, 23 May 2017 20:35:02 -0400 X-IronPort-AV: E=Sophos;i="5.38,383,1491235200"; d="scan'208";a="21105010" Received: from mail-by2nam03lp0052.outbound.protection.outlook.com (HELO NAM03-BY2-obe.outbound.protection.outlook.com) ([216.32.180.52]) by ob1.hgst.iphmx.com with ESMTP; 24 May 2017 08:34:34 +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=yXL7rLwNi4G2GOQHO+WbIfxDuIcjd+eo2nRD8mWllII=; b=ms/I6tlaWkZ1+NwO23x7vziJSzph27aOK9ieUdj5zjajN+3970G0NfKvLvu6mRYtG0J14mVggt1A+FR789ichXTiNXuXGid0KgXyLUfP5Wglt5j7vxxds5ESDIlYSl8xPl5cSZYEHry66UM2b7AmHuw0blZdPuZxTVzE34yGZRA= Received: from DM2PR04CA034.namprd04.prod.outlook.com (10.141.154.152) by DM5PR04MB0365.namprd04.prod.outlook.com (10.173.169.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 24 May 2017 00:34:28 +0000 Received: from CO1NAM04FT028.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::208) by DM2PR04CA034.outlook.office365.com (2a01:111:e400:243c::24) 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:28 +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 CO1NAM04FT028.mail.protection.outlook.com (10.152.90.87) 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 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 49.43.45291.215D4295; Tue, 23 May 2017 17:34:26 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Tue, 23 May 2017 17:34:23 -0700 X-AuditID: 0ac94369-166ac9800001b0eb-fb-5924d5125030 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 93.A3.18148.F05D4295; Tue, 23 May 2017 17:34:23 -0700 (PDT) From: Bart Van Assche To: "Martin K . Petersen" , James Bottomley CC: , , "Bart Van Assche" , Jens Axboe , "Christoph Hellwig" , Omar Sandoval , Hannes Reinecke Subject: [PATCH 13/31] pktcdvd: Check queue type before attaching to a queue Date: Tue, 23 May 2017 17:34:02 -0700 Message-ID: <20170524003420.5381-14-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+NgFvrELMWRmVeSWpSXmKPExsXCddJ5ka7QVZVIg1UrJC3+7znGZrHgzV42 i5WrjzJZbOznsNh7S9ui+/oONovlx/8xWRy+d5XFgcNjYvM7do9pk06xeey+2cDm8fHpLRaP 9Vuusnh83iQXwBbFZZOSmpNZllqkb5fAlbHm9g+mgkOcFY9/dbI3MP5g72Lk5JAQMJH4uW0/ SxcjF4eQwFImibVtaxghnG2MErduvmSGqeqevokFxBYS2Mgo8Wx9LYjNJmAk8e39TLC4iECh xKVtHWDNzALvGSWuvX8GtkJYwEfi8pebjCA2i4CqxOZPe8DivAL2EmeetLJBLJCXOLtlJ9gy TqB416sJQDUcQMvsJBZtrwCZKSGwilXi2eKbTBC9ghInZz4BW8wsICFx8MULZojj1CVOLpnP NIFRaBaSsllIyhYwMq1iFMvNzCnOTU8tMDTVK07MS8ksztZLzs/dxAiJicwdjHefeB9iFOBg VOLhTXBQiRRiTSwrrsw9xCjBwawkwrt8A1CINyWxsiq1KD++qDQntfgQozQHi5I47zmZqRFC AumJJanZqakFqUUwWSYOTqkGRqUHx88d3HpXYuvPZ72s0i1aq+uf3Ptb+WX7zskee05lPlxx RfhCRPszjTMKG5IPbd7q6Kr/SymaKbHfIfyChJz/vnlluVKqGadn3fxssqsqf/IEj+zQUyUG PSknjNernN6jrHCupDXw71Sd+NWCmyMizq7c9lBtfm34dMfVj3X836a6XXql1KrEUpyRaKjF XFScCAB37a6MhQIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrAJMWRmVeSWpSXmKPExsXCtZGTTZf/qkqkwaG7PBb/9xxjszj4s43R YsGbvWwWK1cfZbLY2M9hsfeWtkX39R1sFsuP/2OyOHzvKosDp8fE5nfsHtMmnWLz2H2zgc3j 49NbLB7T1pxn8li/5SqLx+dNcgHsUVw2Kak5mWWpRfp2CVwZa27/YCo4xFnx+FcnewPjD/Yu Rk4OCQETie7pm1hAbCGB9YwS39crgthsAkYS397PBIuLCBRK3D99mg3EZhb4yChx+VM9iC0s 4CNx+ctNRhCbRUBVYvOnPWAzeQXsJc5c6meEmC8vcXbLTmYQmxMo3vVqAlANB9AuO4lF2ysm MHIvYGRYxSiWm5lTnJueWWBopFecmJeSWZytl5yfu4kREkZROxivTzQ/xMjEwSnVwLhWiHVn D8sC0ZsPJQOV6g5o3/6n0mrUzc1zvimt80nU3dieqSe6psbftru9darxdD6rfa8ijaedrbgX 3xYrGiO/TOXGv54XhmFVS/Vbwpx2tazreyntFqQiNHMi97PemYF8GxnzddeomBivCX/EP1/v 53L2czvWLF3h739s9s7Vq8WTHyR4GSuxFGckGmoxFxUnAgBoJoGX0wEAAA== 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)(39840400002)(39410400002)(39860400002)(39450400003)(39400400002)(2980300002)(438002)(199003)(189002)(9170700003)(53936002)(47776003)(38730400002)(50986999)(76176999)(356003)(8936002)(81166006)(77096006)(4326008)(8676002)(6666003)(2950100002)(478600001)(86362001)(50226002)(72206003)(50466002)(5660300001)(2906002)(54906002)(189998001)(1076002)(48376002)(106466001)(5003940100001)(305945005)(36756003)(33646002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0365; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT028; 1:8jbDmNIT6F19v6eHpZrQroBHmrx2+dSDuqlhwzUSI04Yduf7JY3tNiSLmqgS9Sf6iwdj8E685Ss7ew/Y6VAItzULkw1dOg+SvPaoJ0h02EOtuVYuUFUhBYZtTXyW2pzMrspv+p2Ds79h31mcw1G97Zp9H6NeXBFDgm/FkUoqvro2DUqnydRgJX12QHiaTIOJS7efasMWGvZs/uxZVBTjev0Mu73stCWV1ZJpJ8TyJ/latFAZzyTDMSg7936W3tb6PfrIHnwV430dvq0RaZUW/GbqyVuhsIXWye4m3nq9ByJJ1tHeurykQ19SsUnhOv0TMk0Tpza2YoVIuRtuQGCr5WwflEMZXnxn5WI61o0WUrb9yxrhMUZj7BYCJxIu2J88Yz1p+oM7pFhuQZUbR4yfvcv8XHGHrjKH2MDgYtvxCpP8Wg2YfK4h+UnRFU7m27++9WpAuLBi+cqVm3PzpAYhJpTqYnhgGrXEq3JcwNVMsK39a0SQEGZIRYjmDRN5MDrbW3+/HT7+Zgp9VpbI3zfjx+tj6SQAylGlY8lJPcP4Sno= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0365: X-MS-Office365-Filtering-Correlation-Id: 22178f13-159d-4287-6193-08d4a23ca288 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0365; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 3:jPEwrHiEK7cEpDI4oXmcAepvcAHgjKqOqIMAUs9CROz8QBLvT3Tds0LhItKglujEzFpeyfccPhjpUIZS9Y/JUk3LUP7fPhSEZ2Zah6vm4VuBdhHAc3H2eYxRBj9JAXpDrDeB+Pc6+IOXFcL4RavEV6s0WKakiu2ywLKbS/2ald19rma8gVffGK61X+JanN20phzCCU5ZcpZ+qcKqIAipyaD3/rmDyS5P/bBc1nOKX6DELnTZDxg4S5qKFyqJ2DkmNLQKDcx/biNMZf2bMRJkFsbQjgP4JpCJW+ZGAqRedfYlA2/cPa+pkfc7ATdndg+A6a65xfb3U3xeur0HB87r838pit/EIXY+mK3CVQAa7//uFT6jrM854KiVGZIxeexZQNHtT4MgvF11gy8Z/SEmnGpj3/tUEicbNJQuRixJeScCgiReRxaVAdP5zSPI5vuxhkOZs18ms+dcKHmh6noA/1hzXq4gjHBvt23KmGCTt8TjGUcPuM+VRto3u5/kZQVq X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 25:1pnHnAUdCv8WclihRL6HAfQqGHHHJ7r2Q1k2N5I9JS+RweC+QetJNXWonyFzl6qZaBXqaH1kJ8lxSrbMSxHQ8PxQLCcss4lMFBXcyObSEKKflnyscoKtF4jgKKlLDY3DguEVbOEPJa0yZ8neBV00m5L9TwvafsN2yJEqkg5nIagNjDs4jvLtHu19UiH9d7DBa5D8uMx6VqF1JJu0U4Poom+UOjXfCU5TH5GQ1mEWfsDeHkWgM7m57AdiLGBHrRdaKas07dYV1dRQsrmhejVcV/S1lDL66OCvnLeyPZR11JkFlEMQBXl8XsUhCur2DYULFni5wO9ILovhDVGwEJiArqR706sg7yk7ACRvcKbURGATXnPbUpvfXO/jLhXdxmyY/8aKt2k1oabobgoCZdLcIqK85xkoGB/fuD47PBYjh1Y7KA+c+JHjwFaAKlh4PGmyHnW5e5h/BQNFbfydVzyn8oEjUXdC38JiJePeb8hfV+M=; 31:4r3+LFWsC8foxRYmvLyZkx5/UIq4kF7BX7D/1mDkvk7n+VEJ6bz4WDXP8qgdBt9B1eQQweC3JlCJLorZ5SEd1ItFuJaWXoySc20SEMDklvy2JZE2iIaynbtjWhT5Yyb7tyysiKS8D2EE8QvT+nbNB1UF0nEZdEDHKSLlIjica+m6oL7KwFMot5VdKRQdkJlL6EbNPibRmhuZ/14T4TkQ8knn3Yptry69H5JkWcWT982ksmSK//5ZMxdvEipd1grbIpfJ/wljFjzj4dHkfb3WKw== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 20:YTYIPlG9QDqwyboClJtTEMWEjfz3LyJA6Pg6e3mIKb1QxEJnGOCPoDC6trfIdK6g6kq6KyLIIEr4QTmNnLA2s9YfIMJsPYdrK20IEH7nK/61WBV7WoVvrDNz1FG4vHf3Og3JxRzn/HsI3M3Rfr3nGsaXsnC0PHoS/953UGoq+4vSMbIbPLi/oe813Wq20rRQMY3zPyJnVi8zW34Zb2FJyJxJPDo0VEbCzdpg5MMc6QNtyRWPh7NbJATSvNkBvoRblTn9CEPnOzHeU4cMLDzaAKeGHCiyaswhAHK0Z/XNDVOPtr0TBtF9fu1LqVxRl9Qawe9MkAWHavYoGYvlX1pFsQEpT/7Ey0dTUBYY3kiUDrmULrYDKaVQhWGIrCqNeTm2XDEhWrxkOg/iXd9pe88SSK7a45ZrGJXfb6fJAoj3kHmb8EYkifl9lDLePsxXQ01ktObBTN7mBPe4oLLlIXFPzF2VL/TqSARzsPGM8NQcBFUSs9emNsmP5GvLQIAuKvkT X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(13018025)(5005006)(13016025)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(6072148); SRVR:DM5PR04MB0365; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0365; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0365; 4:RNa/t7wEflf93fV/s5vx9rbERSILDJTuMLbuDKgXso?= =?us-ascii?Q?tQ7FHDFBXg8Qh91qyu9DIBUVe1GL3mZb/i/lLJXMV3rXCiGxyszGNY4PGlxu?= =?us-ascii?Q?SaipyamKMHAfEN7keXD3AX6KY4aoOgQW2ei5JwBqGlUdAFUSon0aI9d3v4Eq?= =?us-ascii?Q?5fNo8+dSMllJL3qWmVE/mEpBWggDYWftFms6uFWyhBeXcRiSQ5TNr2VKCeax?= =?us-ascii?Q?4CyNUk0LoE3Qe8Ep1liNJPmNN2F2QEgupCgsoMbQwKshYhiLYtY2dhqHpC++?= =?us-ascii?Q?LEtTvClRC+ks3cNm552gWz9/XUse7yGKXBBPwLgmXUXFc1Okg66IV5e0mTUH?= =?us-ascii?Q?ZII+LE89mZlNBK6YETs2/TPDXPqYh0L9dxpigOf2NxiAuVgNdmjtDqVJMeF4?= =?us-ascii?Q?kHfZ/NArpBVKJWGavs1FVSU7dJ/B01HMexTuVnmeFb3PIsG/SUECH8f54v1g?= =?us-ascii?Q?t5V/gEvoiQMg60YiA/Sv0WS7Nni789y1rSBpLtGQN3hBP1TaS4Rem/47rVcg?= =?us-ascii?Q?yZBd4CD9fvAAT05VnhC74I2NcsCWC3VC9ioswL3A+EszYKl1zrZUP6ZZG/fM?= =?us-ascii?Q?3a/4Bc2D/GKTo+JzUzJtybSVwYheFU0vTIvAgfhUMd9lDEnnmSwSgkgi5elH?= =?us-ascii?Q?rCkdMne5ExWguWgDPDIebKQj8Oh56XFZtMpuxQrlSgI1KIuZP8PdRqt34O2Y?= =?us-ascii?Q?m3VMbeO9OolZ3zQG69R0bqug5WXvqDYKTCz5HDurO2lZ5IBE0crj7+Hpb5Fp?= =?us-ascii?Q?mDH+Af0703T08JAYJlE++xO946+v5NAtCXfMNb8cvOdPqVpc8BWsU/EofWVc?= =?us-ascii?Q?2sNnomhrRNeJTrGw9TpsemdrliB3wp2KZDtdkjk9GSvUKY7m/vjuGdhlQ2Hi?= =?us-ascii?Q?aEDBNDiK4WFe5ipttN+FCLsvYiB03j0riYaw50l+gPOPAjWnOAyAyd+j7LA5?= =?us-ascii?Q?2080IgSsSQuh2Dnk1nuMdlNoSTpoG6y5kaThSydw=3D=3D?= X-Forefront-PRVS: 031763BCAF X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0365; 23:Zhe68pDr6KGbbS/1LSV1owEpZoil1RIUHbIdiJ29G?= =?us-ascii?Q?AsndRylMu/7Ja+0fcjrsuBgOSDdTOqz4qh3XVezOMwDqLDOlXPZtobRnulaS?= =?us-ascii?Q?U7hiXsM5qA4axq1uTaiucaigitnjZkyefXHfX97x/Qyb2wpcLBL59v8nuw3O?= =?us-ascii?Q?iWPn5OMdEbxN1inudJaPuVfipEfJxWjFM2r2p0ha9C+LleI8u/VjO/1WoDNN?= =?us-ascii?Q?TF4cO4z2wHARQZlL1ucTb7cogAxc1t1xeoiNgP9S1yaBchA6W7QkdGG3Ap0E?= =?us-ascii?Q?Vxcbycyzz0R4ThpbKlYiI4kWRIxHa2m474HcMD94BAI8nU5LXV8zZLXllEY9?= =?us-ascii?Q?MY2ej/BgF/ptNraz+O7PJPa4tfGhReHafte3nenxzITaFS5g6aGZlXXMASU/?= =?us-ascii?Q?ke8d/XheRcldsrI/wKju7nlu2nfoJ+ft055UXg4lqlch3A5O5DUnO5IuAoWC?= =?us-ascii?Q?nangohdPRC2d6+ZVtujCdoRrT2MlS9DA/dQf0V6SZLup7Q0I78pCHMisDM+Z?= =?us-ascii?Q?Co5inkFRd/Q+lPsx5zlCJ6tSYLSc3lsusd85qiRh9WPVpGu2/IgTtmLBl2bL?= =?us-ascii?Q?X3Kt1oR2tJKw21+gtbemhbnq/Z1lnoTnIHz3nN5nAN7sHvAo9JqdaaU23n+x?= =?us-ascii?Q?rhIi35f9XV35KLqthFLl+XcizeUuE6HT/gSEYqc0g21Eo4dI8CzCMCX3s6CF?= =?us-ascii?Q?LhHyhODLOZk+qnegXkA6McMNClMDv2wMzrccg9JD6sF+97xqS2wtTrIVNqav?= =?us-ascii?Q?pqDtYP6affRKFZ8AxwfafJ3NIsbBbYQTQLbGxUMjHnryWMWv0PBf3v/YDFuu?= =?us-ascii?Q?z5vbegZac1f++5FhIQQOOS3uTN8Yuda8D5EAx+r0hiSLJBkciAjHtArFVH21?= =?us-ascii?Q?KOwDKNK0lqkoDKVEineSLzVg4wABrqbJ1izISvHkfF5nMFNR8UfKLLCNZcR7?= =?us-ascii?Q?rPCNwibdluzCyTzfg7hkOfwQMprOq0x54QiVhS/g6fIcI/qFQ/W2N6bgZpPe?= =?us-ascii?Q?bqfmWZbMmKtvFfNKsgSlgj7VPE6GQS0SX4yWTjeDP7I+EI5eIqVR0ZcHsYD2?= =?us-ascii?Q?P1boUY=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 6:cffpXge2DWpcuHRlAIRY/u1oGKl9FBVpeqLpfBLLlJ/jRNFO8GnLiiMGqb3JGfpVQEI9LTEgCdFTbUOp3XRFEDiS6dyYK9gaLlxtdWTaqvzlvHL6q+zcnfGX50pPz/7Vd8aS3M+6jKfA+utXZOtQYGqfxAv0J6YrxMljPGb201cvZ2bDAaJWuCz1UAROGdF8aK4LNG10aps46GPhLB2k7ZFlRTrFjto0ocycpg7CbbifMJwdjCrYIF9SGpRnQwE4is/XIIyveMr2SgLdufwSS19eN/KweDW2d9uO1kW30FxV/KA22dEHrbugy02Lb3ml9bMTT2lQxck6zdYPMifHGdWOeJ3FxP1Mps3YotP7rmArlSCwSWPq0x3LBkqvUd2jJ4W1gwGqG9YjBYwIbe7stKgS1QrcCglfU9SbGAa+Kb6jpI+8qFXVsYiaV0+U8Du0AI6j+yNKSUUCzYDOhNJSL6zXRt6j2x2jauFrXLddbCaYKzbldaGYD+4dx0r0Yozp+nE/bBIGf/HJdb/PwXEDvqU/G9BFQ9I7J1r/F7A9J8w=; 5:PumujGlAtyB7BgEw/UrRUoeR/m2kO4YcRvSxebllBjP2JDpT9ggAqsJ9WHIa/b/OnxM12t/m5ZquihVx9whIatkbk0ohylRCzWpMTWxoXrAD8EEKmC3RjSSS208jfyXcq+wbI3k8E65TGCT6kQZ78Q==; 24:keSb27VFt/GVKSGUjxb1PyfcgkdMACC1kiTgssqgQzqWRorUNLThSo3pwek7OO92wzobi+vzGVzSsjUZP15wpIdirwARV50duxeDh2UmaSs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 7:GrLJQi1IvFFGlIrqNW3M9Yj+jk81QwBm9dSVB2lWEA5uFeFAxvJpqEpt275lXWzw3cUbpk8jXQGRceyKeYrV5vCaxr/PZARZBEqCqDWwzHpeICopzXD+TzTcICANXBl6hkNWhXiDnKQkgWNm+9CHik2tVEhjA4lsxMjLiXOiNEqF292BrSdEk90+bEZZ67dOA56nci6uWqmoeJpgVp49QiHq8WL7h/DJ3/wEpnJwn268T+cPbj+70DyPhYeUNmEtFZgVd5J5fwHVj88Sbc1AdDgawfG+qwKwWbiJjjVp+OEbQwwdCuWnw3/LQhiTIh40UqLBpOGjz5XAn5WHYq+SDw==; 20:IkMB7uUgu3t0PO51A/+tgM47pPah3UW9rR793YwSsuM01muZf2JQsY24Z3BnZZxf5FdirYMlrO6uUZqi4JaKXa55bMPA/GR8tXuzym6NHWTWn0YWlOp1b7cwygCOwLY1Y3qeuJIK8Lhjm0k0JrwokOftIBIn/PlxUgoH8ixspRk= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 24 May 2017 00:34:26.7791 (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: DM5PR04MB0365 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 Since the pktcdvd driver only supports request queues for which struct scsi_request is the first member of their private request data, refuse to register block layer queues for which struct scsi_request is not the first member of the private data. References: commit 82ed4db499b8 ("block: split scsi_request out of struct request") Signed-off-by: Bart Van Assche Cc: Jens Axboe Cc: Christoph Hellwig Cc: Omar Sandoval Cc: Hannes Reinecke Cc: linux-block@vger.kernel.org Reviewed-by: Hannes Reinecke --- drivers/block/pktcdvd.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 205b865ebeb9..b8ce55d7911d 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c @@ -2583,6 +2583,11 @@ static int pkt_new_dev(struct pktcdvd_device *pd, dev_t dev) bdev = bdget(dev); if (!bdev) return -ENOMEM; + if (!blk_queue_scsi_sup(bdev_get_queue(bdev))) { + WARN_ONCE(true, "Attempt to register a non-SCSI queue\n"); + bdput(bdev); + return -EINVAL; + } ret = blkdev_get(bdev, FMODE_READ | FMODE_NDELAY, NULL); if (ret) return ret;