From patchwork Fri Jan 20 21:56:50 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 9529563 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 171E56020B for ; Fri, 20 Jan 2017 21:57:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 17D49286D6 for ; Fri, 20 Jan 2017 21:57:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0C804286DA; Fri, 20 Jan 2017 21:57:47 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID 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 A7AF0286D6 for ; Fri, 20 Jan 2017 21:57:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751982AbdATV5p (ORCPT ); Fri, 20 Jan 2017 16:57:45 -0500 Received: from mx0a-00082601.pphosted.com ([67.231.145.42]:59079 "EHLO mx0a-00082601.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752234AbdATV5U (ORCPT ); Fri, 20 Jan 2017 16:57:20 -0500 Received: from pps.filterd (m0044010.ppops.net [127.0.0.1]) by mx0a-00082601.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v0KLsVLo019706; Fri, 20 Jan 2017 13:57:07 -0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.com; h=from : to : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=lb4K2T50EN8gMR89rS5K7Q8RGhCjsQwJBud5kcMPLQk=; b=jQHEekS8DgjRUDFaUUA5EXYs8dzjpm+G4znTLL/JhAs1DkNVtYNjt9MqoHPR7J4Erdd/ L4hvMSJTNhs0ADTUio9YV3XAytEZJdEKjJ7Pb/wWTewzvP267XrdhiqyeVAYJAUEjwx6 HwSILZhCHaHEkmUhBU0SIoGMgqtpnUxvXaI= Received: from maileast.thefacebook.com ([199.201.65.23]) by mx0a-00082601.pphosted.com with ESMTP id 283qmark5w-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 20 Jan 2017 13:57:07 -0800 Received: from NAM02-CY1-obe.outbound.protection.outlook.com (192.168.183.28) by o365-in.thefacebook.com (192.168.177.32) with Microsoft SMTP Server (TLS) id 14.3.294.0; Fri, 20 Jan 2017 16:57:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fb.onmicrosoft.com; s=selector1-fb-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=lb4K2T50EN8gMR89rS5K7Q8RGhCjsQwJBud5kcMPLQk=; b=k2LcZBaPMn6bkCAEbb5I7TP9LWLsIyCvYoNmiWpWrmwy0HOfdk8Tl8/+TUylbDfKTz3XgvmM2TeOPVi6EOPbHOoFpqhSv2XkDdjiWZQIKcfo0Af6cjwAEuRekipfyRKn7z+COaqWgb68GyLtp3vcT311F3AC1Qfmp6+veVDNr2w= Received: from localhost (2606:a000:4381:1201:225:22ff:feb3:e51a) by BN6PR15MB1315.namprd15.prod.outlook.com (10.172.206.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Fri, 20 Jan 2017 21:57:02 +0000 From: Josef Bacik To: , , , , , Subject: [PATCH 2/4] miscdevice: add a minor number for nbd-control Date: Fri, 20 Jan 2017 16:56:50 -0500 Message-ID: <1484949412-6903-2-git-send-email-jbacik@fb.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484949412-6903-1-git-send-email-jbacik@fb.com> References: <1484949412-6903-1-git-send-email-jbacik@fb.com> MIME-Version: 1.0 X-Originating-IP: [2606:a000:4381:1201:225:22ff:feb3:e51a] X-ClientProxiedBy: DM5PR18CA0014.namprd18.prod.outlook.com (10.175.218.152) To BN6PR15MB1315.namprd15.prod.outlook.com (10.172.206.141) X-MS-Office365-Filtering-Correlation-Id: 0e3d7d97-2980-462f-90ab-08d4417f4436 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN6PR15MB1315; X-Microsoft-Exchange-Diagnostics: 1; BN6PR15MB1315; 3:VMwQebHoVC6Ni58WVHWv9JhA3QW/AUC8PuxgtC7pbIzFBNbK6MjavuQ5boLYuKbye51szVPYALgldGumUItEfhmzZ247YCCzgOfnIpiEohT5Ad3mrT+bqd2fcNGFzEnc7NDyocAjj6VucMqS1Cq7wfAbzfbIfVmmJHDeJwdFkCFvY5ty09TxjsUSzOL95O0KHTpi9UXoQMmMDxUTfXHBarNec2rAINngbBcf5zsemqxMTGBBlawfHqEMirPJ6/BEkDtX1OZXQ/bm4bwvPUhcIA==; 25:Z49vNxUDuayG85Tfs7EMkID/u1X/qgzF61aUJFPK7tCECoG06F9V+UyDmYXNzLP3aw+ryHkgAY2YeJWHJ2QJWB/Nadp1Wq5TNqa06O8jmz3P2a88vVNR0Wxhzpp3l5Lbr/9dC5mTBq7t6ZFiALPiE/CLjRqvxyoWfgNHRUrgFrCSP3jKgZZGQp1Dp31lyRDYR5DEyAWp9iCasvIAEdK/1mSaAzoZDveZZAtxzZhq53a8NgKpD6Q+8qTZmCbHhe1HR1cLmFy2zeWaKDfgqOugUASBuAjZsJlAdczvNpW9//2bEBoJ+0hot1d4SoQCsuVnOjWK5TTHqPo10Ljqqwz+kgu35LNgdy2CR0cmBrmSeLmg6vgA1eDFfie/oSBTJX7alu9uV10LJNcavxP3iZgSRHQsWgz6PdVZ5nhmeZc/LKsxfbYh1Ne6eoCo4wxHlq7hguAp8eTruLr9fXEsi+ghmA== X-Microsoft-Exchange-Diagnostics: 1; BN6PR15MB1315; 31:Jp46um30dyVEbXTe+vPVUpzfLtKfwtzwRbSrz+dEy7P3+D90W3LhTknzynLcRQPPF0MTOGLeuimdd4ZieIcw6Dsticra9jAZWAgDxTkXelTwADcs9BDywpR/pJPDGMWIxXmKPHcDFNtOWyTzEgsJGiAEuuDp6RvFnHVmgnTMx8gl7hXpEnYi/4RUKVVKSMvvX/iy6A9wvhKzwJdxle24hWk1wZF7bo4AAZWExeTJ9u76rbYzPecptKb8za1B4Fsj; 20:4sGLnBvFisladgBSjmIZ5/vs7SEz1uiqGofTzVJ487Kih63a2qk/2cKwHu1qi93/5+EhThtLfhNVyxzL5Urky18J4M+AkkRU+Ycdu/Y+OlmsWliQtfoiHK5b5ZkALCRYf5UwSpPUZBrdky4a0hS1TSOgtH+15N97PMqcgrKjcCrwrSsEuFZDJPEG+Rsf6T+8rxO1o9Y2EbywnoY/NMD29XzbdGSU51No7f+EyDj/OHU+VbYAacLq3+CXS4TZ5ieLF9Hd4dp5dvepw4HP0dSJEaFU70L4+pqzovBfOO/c47tEIT0cy60/NNK0JPpx89MCX8fTjkUbrWO/JWVo9ovb5NcgzGBZOPIImW5HGkbCbAsekTxP8o06M27eYpznD4k+Bw3RMVwn/riZqwo6Ytm6BFFO51FG6xks6Ed8PtJV7AgmJbCxyvG6vIYN+qItVOtM0axtViOo2g6OUYiX35QaaBJFMnpZVdMWIqb0WIvlNoN9CIfxednegrC2YChArxxW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(67672495146484); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6041248)(20161123560025)(20161123564025)(20161123562025)(20161123555025)(6072148)(6042181); SRVR:BN6PR15MB1315; BCL:0; PCL:0; RULEID:; SRVR:BN6PR15MB1315; X-Microsoft-Exchange-Diagnostics: 1; BN6PR15MB1315; 4:OSGMEHSikbPniMBUUqJWV9wM3UWpv1jhqYeOo8tWEKdDNEKDax9Gn3ILbW6ikFROEHJN7QvTokyG3swy6WLNHhh6nrWPBmhbCREjgQhRuCAbdCl7xz3hJaUqCC/6ve0HVldFfOOwjPpX/FZ+3MHiA9FI4P7JGL/TxKNQbddumzSFtEUE1ZLhfI5uetIr8ZmHmzg3Zex8qls/tz105/PdHzNIkfxEDCCXVrrP5et47SMSFJQRp1wYS74d0+KwmL7NpVaX5mKAwvcoZ4QdmSoy5iyAicryiyexygnnE7shIOqIW9XI5WNJo3PhfPnQ/RMRQpjj+IlBAn45TLOZjHTKNILB5rbODGivXD0fndrG9i1CpAmtarqHLG0kyA/s0c1sRP+p1xOS6UnTg9aeZUZ1ygSPKpN7v23JrU5iWAXV6NZNepAn4DfkTfU1CZKd5iex366AMQmUvailazJz2yozyvrKs9w3dqnrfvN6Rq73T/U6aQMomeqCcT6wKPrM9nAbYF9PUnJqlv7ndgHcfyHUvXCNQ3sRQIPMQU0/j93Cknzjor4913lbn71Q4Mw8HJGncuUxLm3ZYwrqNWBCRgVIOmlEXQZlto2wpUZloNQjpVAFl61uWOKA6HsGc3DADU3NaB/XUz7rDM0lrbWSMRCT6w== X-Forefront-PRVS: 01930B2BA8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(6069001)(7916002)(189002)(199003)(81156014)(36756003)(47776003)(48376002)(50986999)(6636002)(97736004)(5001770100001)(101416001)(6666003)(5003940100001)(305945005)(7736002)(68736007)(2906002)(2950100002)(53936002)(6116002)(92566002)(105586002)(106356001)(107886002)(86362001)(25786008)(42186005)(189998001)(6486002)(2201001)(76176999)(8676002)(33646002)(81166006)(50466002)(76506005)(5660300001)(38730400001)(6496003)(50226002); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR15MB1315; H:localhost; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: fb.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR15MB1315; 23:R8zU8w7op3Tq6Q7uMEM+QSqq7dE20Lr+OCqBqFDV5?= =?us-ascii?Q?9g8z0fwQXmrmdbn3giFs1hAXSX8/plYQ350j4pq2xbCVvLOlGhHKkv1Sq3uT?= =?us-ascii?Q?omz42KK3Tq+JPjLxhgDqqtCeBC1ox4oIcsQK8kNOyR5HidtDHgx91CtPMdoz?= =?us-ascii?Q?h119BO+Y/MlUcOG7LydkYzQoHPKbVWWCwkwuFyvCvm/dvqgZLQapteKZoScL?= =?us-ascii?Q?b6peHVqKz9vEaMPk8y56KDiJBqUxf3ZSUPoy/TY5mNa6872TDgyIpATt05zO?= =?us-ascii?Q?2XSmgWvKbiCiIUY0NG0woYoWurr9OohHWjjhkQMSQrXTa32sIlWPMDtOqNfP?= =?us-ascii?Q?hltaH66j0N1HQulHBprfCjhlh6EjGV8t9c3zANcdLLQVbQyhh9MFMi55hcHp?= =?us-ascii?Q?H1frSsl43kzqIDQES5GI2p/sJ76KApZr2ufK2MUzVi9qSKGruur/mstWQvCu?= =?us-ascii?Q?YfN0TkqPOvKbaagqTayTSrKlQ5yOlPouVUpj/KSLz+e0jyM0rTNjw9ygfT8W?= =?us-ascii?Q?hW7BRpzZlMxLjnV/O2wpwJx2Pf8SBwlsRB4elW68u3CpKt5ZAOJUoWHzOqPS?= =?us-ascii?Q?/9yfDT9+VvICQqgpmySCOsr/iDW74Kv3zUx7DnuPYaeSZhnTq9ahfsC3IVRR?= =?us-ascii?Q?A2aP7mtr0ge9K0ug4/wmo0Qd1jUaqfiz8DXwvfAK59g01iT9SZkz+kK/ld5b?= =?us-ascii?Q?yYrq/gIvqMGneH+gAIfmMv/WsNywuoJWubAfWqj2h0IpKEqouYv6YXGLV8aO?= =?us-ascii?Q?Va0YG4Q1fGsr2qe8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59RK+1znc1a41RaDfKRPIT0G5E= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR15MB1315; 7:C3BBPnJbdvdFjGpZYjpwkLsSaMTtS/z+h5owomp6pAxNsECFNk9iAln8X6EzLFTTknJ3stE8u2ji2649/aQVVWp46OX/IsXvktrZyixsF4kRDxXm7FzYdbOhZWPHYSyskBpB61PewV/+vraKI/EgGVFkni7AHXJ6S+8KLXYRpQFLADPu62Elx4m56b6RaxeFkiLI2JIJkM5ghs/aeoEtAriEyKyr4b7I5FB7dTM7dmwrCRw1SMCHPggiPT3jqv+Hl4HHIIDBW61rVlUWZZlOK2DmxIWO3t2eatEqUVaSltw1t3hvU0drpWHZf2M68JpJX3HakA0KHKwTT+CW2ZFYxHTiA9fSrC8iGl+Tbqiv7aCWH2zl7v/Q8+TJ4XCso+Ikz4U0WnjYAmv8K9L9DGljsDMF7VExiziAhdDD2mV29dl1ZkW5DAlhUI1dCKVAWtKIaDj1RwUUaejz15Scz9i6aw==; 20:vLZX4CumGwXP8sgT5OPo8D8ZEEHEa9Xiakz2Ih2h2GZKHwot6k6moRmQu5l+hex4Fv6HCnqDdU0GPg3Gk69IelBldINnKTHmaj2ap1c2L+pVLBwDa6oFb+7XBEFYrKbDjmbuGupbNFDDLlREjR7olVH8bLfHHRVyvk+V54N5aPA= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2017 21:57:02.4819 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR15MB1315 X-OriginatorOrg: fb.com X-Proofpoint-Spam-Reason: safe X-FB-Internal: Safe X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-01-20_14:, , signatures=0 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 NBD is moving to a loop-control esque way of managing it's device creation and deletion. Reserver a minor number for the new device. Signed-off-by: Josef Bacik --- include/linux/miscdevice.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/miscdevice.h b/include/linux/miscdevice.h index ed30d5d..7e5c140 100644 --- a/include/linux/miscdevice.h +++ b/include/linux/miscdevice.h @@ -44,6 +44,7 @@ #define MISC_MCELOG_MINOR 227 #define HPET_MINOR 228 #define FUSE_MINOR 229 +#define NBD_CTRL_MINOR 230 #define KVM_MINOR 232 #define BTRFS_MINOR 234 #define AUTOFS_MINOR 235