Message ID | 20170531214350.31157-4-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 8C54A603F7 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 31 May 2017 21:44:06 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7E7C928451 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 31 May 2017 21:44:06 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 72841284C3; Wed, 31 May 2017 21:44:06 +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 5E4EB284D5 for <patchwork-linux-block@patchwork.kernel.org>; Wed, 31 May 2017 21:44:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751083AbdEaVoE (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Wed, 31 May 2017 17:44:04 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:20366 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbdEaVoC (ORCPT <rfc822;linux-block@vger.kernel.org>); Wed, 31 May 2017 17:44:02 -0400 X-IronPort-AV: E=Sophos;i="5.39,276,1493654400"; d="scan'208";a="21782829" Received: from mail-cys01nam02lp0051.outbound.protection.outlook.com (HELO NAM02-CY1-obe.outbound.protection.outlook.com) ([207.46.163.51]) by ob1.hgst.iphmx.com with ESMTP; 01 Jun 2017 05:44:02 +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=uD48KqVJQU0PVq93WUER/WDbzfjjVqN/x/SQVAxQsqA=; b=S+CAScl0qpRUfpPjctsTm5+cihUNSVLY7sRNY0A+eSuhKlCuMjb3SpNbHHzHpC6qS8sumEa+j/rfW+bkMGsLTvfQIf4gMoFbDSH0ZcWo17JdpN1yq9UB21YaOJi7BXZgJLkAe50sunumlKssk0/wJwl42JIZvkY85pgE6eQquTo= Received: from CY1PR04CA0008.namprd04.prod.outlook.com (10.166.187.18) by BY2PR0401MB0919.namprd04.prod.outlook.com (10.160.64.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 21:44:00 +0000 Received: from SN1NAM04FT032.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4c::209) by CY1PR04CA0008.outlook.office365.com (2a01:111:e400:c5a5::18) 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, 31 May 2017 21:44:00 +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 SN1NAM04FT032.mail.protection.outlook.com (10.152.88.158) 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; Wed, 31 May 2017 21:43:59 +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 A6.22.51736.D193F295; Wed, 31 May 2017 14:43:57 -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; Wed, 31 May 2017 14:43:54 -0700 X-AuditID: 0ac94369-6dc8f9800000ca18-bf-592f391df8cd Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id 7A.DD.18148.A193F295; Wed, 31 May 2017 14:43:54 -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>, Omar Sandoval <osandov@fb.com> Subject: [PATCH v2 3/6] bsg: Check queue type before attaching to a queue Date: Wed, 31 May 2017 14:43:47 -0700 Message-ID: <20170531214350.31157-4-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 In-Reply-To: <20170531214350.31157-1-bart.vanassche@sandisk.com> References: <20170531214350.31157-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrCLMWRmVeSWpSXmKPExsXCddJ5ka6spX6kwdR31har7/azWaxcfZTJ Yu8tbYvD966yOLB4TGx+x+5x+Wypx+6bDWwenzfJBbBEcdmkpOZklqUW6dslcGUcuGBX8IOj 4tXljYwNjLvYuxg5OSQETCR+PO1k7GLk4hASWMok8bL5DxOEs4NRorl7PlAVB1hV0xIWiPhm RokdaxeDdbMJGEl8ez+TBcQWEVCQ6Pm9kg2kiFlgIqPE9ml3wI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33RZCWW 4oxEQy3mouJEADB7pre2AQAA 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)(39410400002)(39450400003)(39840400002)(39400400002)(39860400002)(39850400002)(2980300002)(438002)(9170700003)(50986999)(53936002)(36756003)(54906002)(2906002)(76176999)(4326008)(77096006)(48376002)(50466002)(1076002)(5660300001)(6916009)(86362001)(106466001)(33646002)(2950100002)(356003)(5003940100001)(6666003)(81166006)(8676002)(50226002)(72206003)(478600001)(47776003)(305945005)(189998001)(8936002)(38730400002)(110136004); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR0401MB0919; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; SN1NAM04FT032; 1:kKJRkIbWsTz5hN3TzQgYYCwfzJCPsN5X+HPz43G0l2qAcEV1jWz0Y1rhueYBh0ElLELBJAX+A8738QjvjT5IMMmHKTSEPQnuO0mdrd1oYiw9Ht9XEYkfrw5MmI+CfNbR3qOwe3gCFVHMr7ezdMwdTLcB2xFZd5+9mLlt/yKJVVRJ0F1xYp8JmKrnBcEh72uWOQ8JNIetkGeivY/9GgSv7slWyNcjuQimlwodqBlu4brnF849C3ZcqTcbxPwduPDCQmoloLqnlwzpRbhIVii90DI5W0h7nKaptIObsYTkjh1GacqgksABMYyNEmLbUwGbTbsoozq7U2nobWIn1z+Jp6HAmWCVBd6z2jYNhIdr4eDwynFmp8ewdO77KmT+nvmPwAO0NduY/x3ptSw3HL3GCgBsO+y4nFw05cMsY0zXZrNV62f6eOsxKVMhs9zMMya1vc+Wv5ODBFpjJD2wF7mRn1sp1l93XAd9bXn9OMnZQXIEVXCslMHVA/XTMxd2h36E4O931sHYZp9wsglekH4BII2dU637HoNAdD71l72u8gq1FxwsP8uSaNOFnfimQMN7 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BY2PR0401MB0919: X-MS-Office365-Filtering-Correlation-Id: b672f3c1-cdd9-45d9-4a0f-08d4a86e25b0 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BY2PR0401MB0919; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0401MB0919; 3:4/f7F1WUXYPRtOchcoFOlKAHvwzMKTZPMPYSpwbBrcrGKCJYYWuuT+zUCwIctyGXQ0wSIqX7hu0GbTaVonxxQawBJv1w9TsN3X4jMnwSWYOklPNzjWd5CUqlLBRayvj54IxgSJ2zzDzwwJAZhZQJcMoUx8vK8b8CYq8/NBNc5NwWm/vL2oNCzbbw6qbTYpe4zxEYSkwCXNhuFqcMizimlPSAai3cs/LJuCVrnKPaSFXx6gYPlV3GuQPJ91tqt2blSM/KRaZpF/o9QZ6/I5U7ZgUXs8+KfQErk41yFzFrprenTRcGT3rjMurvtvDaxLdcbwFVszG1GimrXF+emIZA5roXVoD0a20u8dWJEMYioiIS4D06L+7iUOxcnW0ZdQWDSYMpmn9laqAwXM11Wnf/gb2aAr59APbSJvZf8UXay38Y9NKqsZsXENg6ZBnsEXiz6A7x0+uYnETQYb1+LEdtrQESpAEOnkLhceskCL6SlXb8W0kBYIrW7g8jDSur9RrH X-Microsoft-Exchange-Diagnostics: 1; BY2PR0401MB0919; 25:k1KYU2vROSAtoeBv/InOfgG08pFiBt7i6jLPnrJfEjw7mXpTBaSsWCJVB9kytX5R2JtjDFMrfJ4MONmQazPN1Gf3XV6Ifj7UqKtC+dmJHjMqwbtzE8YphZTY85CVPuQUvrTAnwZFOANpiO6pvi/EsOybYxWsP35RdEYZMk99v4V/rdviDr8G2kiCtA8s37NirMtjApaYbFNGXXsWK7lH0IsOwGRhVEd6h+eS7mb9Cfq+NLQwzGgYz9as3k25tmmOLRHKHRUuJ/Cryx1ywNwi7iPJidcoq3jQ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S: <BY2PR0401MB09194084DBFEAA890708314781F10@BY2PR0401MB0919.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(100000703073)(100105400095)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123562025)(20161123558100)(20161123560025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:BY2PR0401MB0919; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:BY2PR0401MB0919; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0401MB0919; 4:O8JX89U07vQZlSw94v4c3t2KCzl6JNpbwlt5D2za?= =?us-ascii?Q?e0Ardpf1w5L4PPWF3UsKlOvyHclZ78hKM6z2+rcgWfik4L2VId5ULL6cKX16?= =?us-ascii?Q?c/Rdx1wg5IJgF5i04qkFJLTPEriJBWjbUTDwUmRHCTefPglvU88iTt64TBel?= =?us-ascii?Q?s++os6E6K4O2bmYMaBOxzjr7xCcekgCifEuaWON0WgH+KdasCMDJuqdkGyBq?= =?us-ascii?Q?DVfq2wnuOR06RCWpTfgQ0umo0PY7Hx5vwFw4qcRFI3cIao1EsdiwwQMAAFg7?= =?us-ascii?Q?pMw35LqNP4DBDXzL+9V77gwsHE5BQPALv8oTeU7ulVORsmE02w04EoPtm6hQ?= =?us-ascii?Q?rGEfGY3yGM/AvhOhX/2NOz1xThRRlqbdt9a6BUbiwiDuSZRYWn5l6fGmJDyu?= =?us-ascii?Q?xZybDSlfijHVQ1L+F8s4jRaeV4eRy6VUqIRD+dEABg6JkHgUj/a9AFxwe2nS?= =?us-ascii?Q?ElrTAhWUSZaRInwGM5O94LZ86hL66up+6GsjGjtnTfE9nPGNWzlkzb/tuy9O?= =?us-ascii?Q?AFoUXfSa2EyonTA0nm0j/d8Zr5nqEJTQvmj/cSKPJ6ikMACUIMWrxDaGJqB+?= =?us-ascii?Q?f1B5PgD4fkFYefenHc2M235xkkfADhw1x/fFIeSqch1y0NdMVlDL5+ws+ij8?= =?us-ascii?Q?xaApI1U8BE+oYXRtzoDsEbTcurAZWal1DuCJScpIImI6hf6CYOlluye86Lzd?= =?us-ascii?Q?p24cxZeArqJOh51Qhab2rHGBEdS4aQvtvr3f+FZaRBuZdUxrTwveUZC5AWEM?= =?us-ascii?Q?hS8LoF5IoOUv/+IsTKKSAuJV8dU7hkUVAfXtpE6RxBYya1tO/TQWhm48Owtx?= =?us-ascii?Q?RGCrx52wVT0ereKcf8pq+zUogplT0tG77nH4BzSH2Js9jp2sVmrslOqLEyC8?= =?us-ascii?Q?I55r0oG3vOT2PWRQporb4d59NsCUg0Kihomg/L0jQM9hELikj2sZ1SpjS8m6?= =?us-ascii?Q?ZjJ2/KKSX+k0cW+3CFgFJfz2tA1CiQlcCN0h+kRUbprp2U+SqZze0G5LmYBN?= =?us-ascii?Q?x85bDidhqmC3d5r9ktsIgtG0POAWdS31YAqhTGkJvjDqdtpNba+WGRugHIfy?= =?us-ascii?Q?eXB+nXRSyUpx31DHbXaVLv5Vb+IMoGcOgUlEP8I5W01P/IRton/8tD0moiKZ?= =?us-ascii?Q?OAoO/hW5Xas6V6qJo5DS/dcsNaYmytcxz367nXnUGBo1eDC09uK92uU38oZ2?= =?us-ascii?Q?4sC4Dsl5my873M3RJqrJ51o8yuxvvD8W6PKfq2agQtJQlnrxbZeH560FEGqk?= =?us-ascii?Q?8Me+pQbGM92t6vFlexMZa13kncGtC81NqH+Erg5P0UYsRAEmRy8sZ1S9SRri?= =?us-ascii?Q?dw=3D=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exch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Org: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 21:43:59.4350 (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: BY2PR0401MB0919 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 |
diff --git a/block/bsg.c b/block/bsg.c index 6fd08544d77e..40db8ff4c618 100644 --- a/block/bsg.c +++ b/block/bsg.c @@ -750,6 +750,12 @@ static struct bsg_device *bsg_add_device(struct inode *inode, #ifdef BSG_DEBUG unsigned char buf[32]; #endif + + if (!blk_queue_scsi_passthrough(rq)) { + WARN_ONCE(true, "Attempt to register a non-SCSI queue\n"); + return ERR_PTR(-EINVAL); + } + if (!blk_get_queue(rq)) return ERR_PTR(-ENXIO);