Message ID | 20170525184327.23570-5-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-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 4978B60209 for <patchwork-linux-block@patchwork.kernel.org>; Thu, 25 May 2017 18:44:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 406F2269DA for <patchwork-linux-block@patchwork.kernel.org>; Thu, 25 May 2017 18:44:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 355402836F; Thu, 25 May 2017 18:44:09 +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 BFCEA269DA for <patchwork-linux-block@patchwork.kernel.org>; Thu, 25 May 2017 18:44:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1036473AbdEYSoH (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Thu, 25 May 2017 14:44:07 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:26582 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S969094AbdEYSn6 (ORCPT <rfc822;linux-block@vger.kernel.org>); Thu, 25 May 2017 14:43:58 -0400 X-IronPort-AV: E=Sophos;i="5.38,393,1491235200"; d="scan'208";a="20374640" Received: from mail-sn1nam01lp0114.outbound.protection.outlook.com (HELO NAM01-SN1-obe.outbound.protection.outlook.com) ([207.46.163.114]) by ob1.hgst.iphmx.com with ESMTP; 26 May 2017 02:43:36 +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=Wwe84eI45e8LQN9pB7d1vOgjmRNfdizPTM1BnYLEJeI=; b=X4TPWtvi1RR/PHRJW6Y7Kde/6TYR8VcQvJpY+ARaK1+nu/nBVTn5TfBtEFoH/AHF+OYXdXAaPdFnccbLJFMGc7ewkJjugFshgeH8hmtDbw3/r28t2Va/g59LoLm+PS6Ny5JVR9UcWMlxQ2LxwI0f9FtdJOI8xDJb2eyQOZC2Ud8= Received: from MWHPR04CA0042.namprd04.prod.outlook.com (10.172.163.28) 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; Thu, 25 May 2017 18:43:34 +0000 Received: from BN3NAM04FT036.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::203) by MWHPR04CA0042.outlook.office365.com (2603:10b6:300:ee::28) 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; Thu, 25 May 2017 18:43:34 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.com; 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 BN3NAM04FT036.mail.protection.outlook.com (10.152.93.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1101.12 via Frontend Transport; Thu, 25 May 2017 18:43:33 +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 7C.2D.19026.4D527295; Thu, 25 May 2017 11:43:32 -0700 (PDT) Received: from milsmgip11.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; Thu, 25 May 2017 11:43:28 -0700 X-AuditID: 0ac94371-41ba798000004a52-97-592725d490d8 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id F9.E8.11415.FC527295; Thu, 25 May 2017 11:43:27 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, Christoph Hellwig <hch@lst.de>, "Bart Van Assche" <bart.vanassche@sandisk.com>, Jens Axboe <axboe@fb.com>, Omar Sandoval <osandov@fb.com> Subject: [PATCH 04/19] pktcdvd: Check queue type before attaching to a queue Date: Thu, 25 May 2017 11:43:12 -0700 Message-ID: <20170525184327.23570-5-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170525184327.23570-1-bart.vanassche@sandisk.com> References: <20170525184327.23570-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrFLMWRmVeSWpSXmKPExsXCddJ5ke4VVfVIg3Wd/Bb/9xxjs1h9t5/N YuXqo0wWe29pWxy+d5XFgdVjYvM7do/LZ0s9dt9sYPP4vEkugCWKyyYlNSezLLVI3y6BK6Ox qZ+t4DRnxbc/D1kbGBs5uhg5OSQETCQ27rvM3sXIxSEksJRJom3KaShnG6PEgaPzWGGq9l/Z ywSR2AyU+HWYCSTBJmAk8e39TBYQW0RAQ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IC0xkPXZfNV1G4IWAh8HKldRH7ocSnB6fF3DH/yJlxPXDC oRd15kosxRmJhlrMRcWJAOZ41se8AQAA 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.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39840400002)(39450400003)(39400400002)(39860400002)(39850400002)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(54906002)(2950100002)(6916009)(76176999)(53936002)(5003940100001)(50986999)(305945005)(478600001)(6666003)(50226002)(106466001)(110136004)(38730400002)(356003)(1076002)(50466002)(8676002)(33646002)(48376002)(4326008)(36756003)(77096006)(72206003)(47776003)(8936002)(5660300001)(2906002)(86362001)(189998001)(81166006)(133343001); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR04MB0365; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT036; 1:LoGKmqnNVlFHGHzXK6u6l4i5+h0p31vf6VhNfYmjonpIRNhyCeWPf+VcBwPsa56dO/BJzWXKoWdUSbIh0/L3VP7dXLxjXdMBfQp9Xu37lhb5paijN9HyaslF5rj9aoK2rZAxhKznwdELPeag/K7hP9j/Az26n6VdQQN1SoRgLyvBWhTUU7KFSbPDpBkH8MwsZ+dnMzjfSAX3RMTHyfJi5iCSngLp9MDBE6403rDsjOGdkSw25xzRQsLt7816MS8GysGKp3rxbaLqllUDgWJ7XvQfqaE4ZXjDoJphcoG9ApuHetkDMCEpAgCW8Fw/E6EgJTpqpvXfr8pRHM83sueWTh4gkBqNin6rdy6d+LsvL16s0a9GROUid0UojhyGqFTNBGxuoNjS7/KPU7O9+kLMfy/2jG3x60crOKUMstekk2ZzB9TwSy5N7aujwwNl6VmoAFoNKa5WpYOZtGJQ8gV9ve25PZq9u34/fXgrIVydc3lOQ5LD1wUc0cLLmEZ9pwXSB9AQQIZs8h/Ws1AuKsUg/zDvZJ5ZmR6kgSlJk/Qmeps= X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR04MB0365: X-MS-Office365-Filtering-Correlation-Id: 8ab1cdb9-81bd-4854-3759-08d4a39df26c X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:DM5PR04MB0365; X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 3:wr0rMzgUmtalXX1IcSVuIhS7smol+CQltek5O+MsER74XHMuouxywtBrmbejaAQ2/xy/P1WqZ+NDzAxi4N10yPx6EdtofBjI2KQUcnWgUpPIaoN6dt39pwYFDRKrdx+MRnBn+t+CxM9H1XEITlN8nO34P5TOiVpH6BNg3ml/6sD+FlOefh58IwauXVbOJexlSVZYcq1LZFqt5Xvc0H/h43vrNK/ugTI+Wu6KakPOsgFFcFWEzvKs5WsZAJ9ZAYQ7rQGa71qKHYpdLFzUA2YnWcOxOqU4AxtLIDeOfD0xF2e+n3mQMglBXJMohvPxPE9C+YdmioMMPGGKhLWkPrfWrabjIS2fomfCCKN8MVnLCcvQK8JDzl9ooM+uh2O6JH8kCzCl61KxVFVoOSpU8KghpdvF1kL+DY9UTc+fPhEvvz/AyUidzs9AQfZO0N6QnbMqVgloh9PsGTaUKlpUWq+k6TEW2f/uzPkAtJtvalBP0DXYrZfvV7LNTpy3/L7Cq1Y1 X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 25:HiwDSSfWuyzesJMbKBw1pgaBrLVvkUz9SY2MHGoq6n/AOguokIfFGw7Bo5ZMl3iyZ9kdeF1idOHLAPkxu6AQp9Jn96pZV/WzeJkXXq9wHbIyj7A8m9ULvT4rUJ9rYCSacT9Bm0ZM8cBq+IxFmLnPUa7d6qRc/wehr9shpqf/Q62Rc5UH4YThGNC/nvs1BUYJOSIjVF3EEjVUs0W4MsfNm/nudMn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Cw/D4H2rbjm282KnhS4fms4pBLj6eW32xDktE24VUvo8R8l X-Microsoft-Antispam-PRVS: <DM5PR04MB0365667130458D50A7237A6881FF0@DM5PR04MB0365.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(9452136761055)(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(13018025)(8121501046)(13016025)(5005006)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123558100)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(6072148); SRVR:DM5PR04MB0365; BCL:0; PCL:0; RULEID:; SRVR:DM5PR04MB0365; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM5PR04MB0365; 4:NncybujXefT3yRg7n56GUqodIYuslwvUZWqb8uIsFB?= =?us-ascii?Q?HwFhjRjptBwXsWG8sZwlnuUcEDItfDxq56qxUL4wm6HsarYZXjTlD7QUDJBA?= =?us-ascii?Q?MRJ7PrAezyNSg/Y2Tp8dy0voPE0zb87YcbrqXqTS6flQg3uOfmNMAVQfgHwW?= =?us-ascii?Q?csZR21dAWpPbr4e3/3ZOeTtZN50VLfUb/xGKLye4cIX++0KpsClXRdDGnjga?= =?us-ascii?Q?8NmlIqKf7U+MgHO3yaf+qIUkTuitz8QRLpburV6U9CbQXjfdUF8uNCZJA1sk?= =?us-ascii?Q?n+kUKv2/tqJ8euZqmx6yxAODigrIuYbovmSMFuWy9UWI4cv7Xfcdb8b1oPtG?= =?us-ascii?Q?oZ/D2mijmxLk0Gx2qCHrrYdUEHnTveXbodV4qXnOyfIglT6C9tYyu8EMglOd?= =?us-ascii?Q?mttyoH89SlqEBIoQEl/U8uvGVio57bqRoiCAIa7EgqxVfwOGYNKipvIy6+op?= =?us-ascii?Q?vGDn5VnNO/Pgevp+oYpP87NAnTp+tpj5f/SWw0ZNBGeTljXamgOgILe06mCq?= =?us-ascii?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SdjnfeO7cRRoMQ4mwJTNjEI/2+0eSzzTMN8vM82yENvrSyxA9QqwVp3mN?= =?us-ascii?Q?v8w8Rpu3zD5x7LPdaS0ClYCRNrcIRcpd7787QEHTCxzHgsVIuJ9PG7Vz27lU?= =?us-ascii?Q?gSbKHqkIdsmTcK55J/tyRmSa+B0It+HolbUkAWfKI85i5oxa7+jgdtz+aGO8?= =?us-ascii?Q?8mI78d2VS62kRqnOPe9PVqD7T+AEzzF26VSt05MqL7g0FzMRSc5BwYb4FaBP?= =?us-ascii?Q?bBp0SouL+pjnKz6LTUTfx7TCgj5VwUsesEtldXFj7cGRMiMnYZBEJR5BGoNm?= =?us-ascii?Q?EuAFwGwoGgD/adTlnCCROqatgb7mLWqS1G54riJSlXZFOa/qX9WUetDNsspz?= =?us-ascii?Q?uKrK0+cq46b0yhgyqOHxlw7LYn7R8rXjh+eAJ3qjQ9T2BytpULj85TtCYSyh?= =?us-ascii?Q?m2tI7UWuwTuMnLfVsrkf52WxJ3KQUQ9jDYzXpD973lukSviGhYmni7pF0TA4?= =?us-ascii?Q?z9XH/15uKI+RSLelLYU1OGkQuWQjDsKzGAVS46roAG3Pon0HKTO2lgiUQufe?= =?us-ascii?Q?6XyhHto0CNbdi0HerUFQxe35YLvmtaozF1G0cnfjm7KUneZdFS9t6rz18bXQ?= =?us-ascii?Q?iM4b3odyXdm8x5LlScgLyo2Vn9NY4a94pchAVzI2LmKY/sF1Q/EiHrmyelBC?= =?us-ascii?Q?53/TeQ0JC0os9lwEKQx/Pi1RKVOmkeXft7cRr/y99p5X4uKN3h4ziGPV+RYq?= =?us-ascii?Q?A6CnoVKShjhZsH4NYrvdZfZ5n2bxVYosA1s+xnAoe9exTu1yKq7cb8pAEOaA?= =?us-ascii?Q?gZukvUEy8s=3D?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR04MB0365; 6:a5+crdAgriqFCFR5oF2qCGRhb5HjcfJ08r39jmJroAuHEnOrZZXXGt0mQ/nQY5oJjepyXtIZE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Onp/ei7tNAHV5rxAGoLhFNT1Q8E+JqAH2CDgsKi4bEK/r6ISr1Qx7F10+g8+4c39cGz16W9w5cK5nPhCWsDccjA2FsOjLhxd5pmOHrWw==; 20:D+xtGjmDtKW5HvPr7HBtOlFpw+pEFVtIaAKaMBrXK6MKDgCEd4Uag22EOWA/rAE0NU8yXVWPctZC7M/qPiCXHmC6IZlueMTnAitcXBA8p+slG3ndE/RD3aLdXUgUva9hJrJtEXLWFRqaYAwmesLb5JMpXSXZYd5I2L15t9mf2lM= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 May 2017 18:43:33.1266 (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: DM5PR04MB0365 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 205b865ebeb9..1404c1c01fd0 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_pdu(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;