Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3163145pxk; Mon, 28 Sep 2020 09:50:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVlsS56Y/MYXmVZzg9w1uDRj1Ni3EDBFyoZQZr9IknhkTZJpepRI+sW3JLPtsCadiE/20S X-Received: by 2002:aa7:d15a:: with SMTP id r26mr2808165edo.181.1601311816777; Mon, 28 Sep 2020 09:50:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1601311816; cv=pass; d=google.com; s=arc-20160816; b=mNn0hKGnG63J+XLjmg6XALs1GFAfDqywAnQT9gz3/QA6+J6vn4+W7l0knmIuprnttO XKoMEw0oM7sIhyQKHMVrTzfzhpVXJ8GtiYTOHN7b7uhlrSGEcrAQQs+fW2NsUfG/INl/ R9HrYMSwaqRf5f0bKT9AUmQeZnoSA7UvVgeTHCqU8cidVYQpQiEHyX2pNn8/To0DmFe9 L3IFjPnwLpxv6eQRX1jLvPAE3BOPCthBeQarNqIOhxFVzvd4y2fee+G9raegVbdqIpNH eog7RPanv622pufo0NBsf20VwVOnNFoF0KFBLMWUt3CjrzOsH7h3IScgLiYWpVrgN6bK T+hw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3LLZlCiwYv42Sp3MVyUXSIPnkfi5MuTb/poHrT6pbdc=; b=o97Cs/SH9yk2pAsBDaHOuI7RkpST1IHXdAb2Ex9aaw/Z0d+6Vdz6HcoL7aqye5HMoP 5Wgc1stz/UXG78PVsejl1JWbsuUVDjhvVMB9nAGEZdsO64r6aNqLxRIJtpdtyKCgERGJ tF+qNYBkBXpbPCuGKx1AmjOkZ9NLTir5A7knbHRnWoVapqrkr5dXrBoJL7xvZX2YfY/Y dcI0h2uxQ2HgExlnlw9FmCVMLc/dVTDWVHh+bRHXGD7w2JKBd7PUc1Mi0MUBVwmS5v4B H9mh1JxT2TCE/ncQO7MqqNIZbkBKkFPopMPMliDtmMfVt7oHtSOTaCK9DBDL8gOtH1zw Z40g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@micron.com header.s=selector2 header.b="t/LZn4in"; arc=pass (i=1 spf=pass spfdomain=micron.com dmarc=pass fromdomain=micron.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=micron.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y15si1020409edv.22.2020.09.28.09.49.54; Mon, 28 Sep 2020 09:50:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@micron.com header.s=selector2 header.b="t/LZn4in"; arc=pass (i=1 spf=pass spfdomain=micron.com dmarc=pass fromdomain=micron.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=micron.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727008AbgI1QsF (ORCPT + 99 others); Mon, 28 Sep 2020 12:48:05 -0400 Received: from mail-dm6nam12on2050.outbound.protection.outlook.com ([40.107.243.50]:1921 "EHLO NAM12-DM6-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726863AbgI1QrZ (ORCPT ); Mon, 28 Sep 2020 12:47:25 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DZJewqQxQcwwwe1A7heElDxOyxKOt0cQJvdRb0HceJr4blxJH87onO74qiM8a/R2XyriO7s8IixmgfIu/tveec2PJOmv7OxjMFZQhvdM+yesv51+3OeAyROqF+5jT1WSQKrMJExtFUKLsG2FwQ221nTSEmcetjDgYYophLFKZxLwjeCePd2EEhTfus92S7BiYBDRN95bkX4GAc/2s0/7Sx6So3uvHcTs7XuVFIJbBUIES6sOtRL7RxFGcPKplwawSuWH1fDN9Al+5yuMftPIKdSerkKou9vYZon8GCBiQN+G1x108d/XNurM5BFqK1KwxhPbfcoy7UBOt+iFRPm+fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3LLZlCiwYv42Sp3MVyUXSIPnkfi5MuTb/poHrT6pbdc=; b=T9/nqx9pB4dxVsYwYbTAJYZ12/nD0IneiKjihoGejSzBCRLVguIDm+2ssUrFFd/Xt6fK1YlKz8ZqBejr8LUZZ9V7bfriDlneWlvO/dYcBwwzY+LtkihdT4gsNk5SMVW5umZ6x1tIsL8+kXGMeC3zc+s56gO+JUrc/fW2kxCp2Urh/QGR1zKxjZ20N2hP76vVicBj44xeVCRMJvZp2OZOtVRdKFyQfVO9EOG92o55POHDs2XPyvcMw9ZGqzKFaiGVTJGpgGfbqjZ7HLxWED/iTh9Me4umRo4hvnHE9i9FrTHt9fQHHI33NWwr0yj5jEGCFx6JPr6etTCZVoRARaiVvg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 137.201.242.130) smtp.rcpttodomain=kvack.org smtp.mailfrom=micron.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=micron.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=micron.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3LLZlCiwYv42Sp3MVyUXSIPnkfi5MuTb/poHrT6pbdc=; b=t/LZn4innjWbWPkgbvSH1KarIUCsjf2TaoSlYzdAM5X/hRct5stZmP6Zw0apuI4w6r7GIBHS0X2n78cVdWwIxos3tb1eZY27aApx34SQeMwoREVAXfvvqDNjCzMTYN8rWVx/3X/0SO71V6L7q57RDBsljcUmNjauEOL20mq92YY= Received: from BN6PR13CA0037.namprd13.prod.outlook.com (2603:10b6:404:13e::23) by CY4PR08MB2968.namprd08.prod.outlook.com (2603:10b6:903:146::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.23; Mon, 28 Sep 2020 16:47:22 +0000 Received: from BN3NAM01FT028.eop-nam01.prod.protection.outlook.com (2603:10b6:404:13e:cafe::30) by BN6PR13CA0037.outlook.office365.com (2603:10b6:404:13e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3433.13 via Frontend Transport; Mon, 28 Sep 2020 16:47:22 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 137.201.242.130) smtp.mailfrom=micron.com; kvack.org; dkim=none (message not signed) header.d=none;kvack.org; dmarc=pass action=none header.from=micron.com; Received-SPF: Pass (protection.outlook.com: domain of micron.com designates 137.201.242.130 as permitted sender) receiver=protection.outlook.com; client-ip=137.201.242.130; helo=mail.micron.com; Received: from mail.micron.com (137.201.242.130) by BN3NAM01FT028.mail.protection.outlook.com (10.152.67.96) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.3412.21 via Frontend Transport; Mon, 28 Sep 2020 16:47:22 +0000 Received: from micron.com (10.114.5.55) by bowex17c.micron.com (137.201.21.211) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 28 Sep 2020 10:47:18 -0600 From: To: , , , , CC: , , , , Nabeel M Mohamed Subject: [PATCH 22/22] mpool: add Kconfig and Makefile Date: Mon, 28 Sep 2020 11:45:34 -0500 Message-ID: <20200928164534.48203-23-nmeeramohide@micron.com> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20200928164534.48203-1-nmeeramohide@micron.com> References: <20200928164534.48203-1-nmeeramohide@micron.com> MIME-Version: 1.0 Content-Type: text/plain X-ClientProxiedBy: bowex17d.micron.com (137.201.21.212) To bowex17c.micron.com (137.201.21.211) X-TM-AS-Product-Ver: SMEX-12.0.0.1782-8.200.1013-24646.005 X-TM-AS-Result: No--2.057200-0.000000-31 X-TM-AS-MatchedID: 700076-701480-701809-703017-702395-188019-704388-702493-7 01128-703140-703213-121336-704499-701029-701270-703027-704783-701343-703713 -702207-704623-700260-105700-701592-704079-700806-701590-704849-703993-1860 27-704962-148004-148036-42000-42003 X-TM-AS-User-Approved-Sender: Yes X-TM-AS-User-Blocked-Sender: No X-MT-Whitelisted: matched X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 498ccff6-3a0c-45bc-4ba9-08d863ce2bd1 X-MS-TrafficTypeDiagnostic: CY4PR08MB2968: X-Microsoft-Antispam-PRVS: X-MS-Exchange-Transport-Forked: True X-EXT-ByPass: 1 X-MT-RULE-Whitelisted: Triggered X-MS-Oob-TLC-OOBClassifiers: OLM:2803; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qlTqLwQUa6FgoKcykeoK9xGkjlcp1D85rwCHjyBuXGjuqZmQ9jT3glB4kCLAOlHVh5Njw8qvkL1mPEX5b6p1Lrm0yTyMMWRvc3ZPv/HhNSGH3lY7eHZPCVoLIvSLtW7zhV4QmeTMm1PNdW4k3StZdkkNnYVMPUdPKhT6sBwoJmC5/8Mc0XXVSHt5L+m6zct5/RMgxbaoRYWwhmjvFH3Z9PKuANt6m9n/k7jYZwWmhFCYPBM4XjniuVeX7HWVAlJzM3wWimp/mDwRtKqNkpzzHc5VPB9ovaaAQ+J2F8BT9aFUXvK6N/9tBUOI4Kn4GpVQ87768q+pwBd/7GNjA2okiNuSdmFTPY96JmqhiusWHHkgTlDvt8TqHQ3aF6X0aC7U0hawUxq73DkbYObKDHTVmqv8IDb0TWava6sZ73L5qSNbkOqJw9vp41kl3H3y9ax8w0SUySVs2EVwo7qnhIoqs4z3yw5FRaYm3GRTqqLankI7dgYjqB4+GZscm7er3f+O X-Forefront-Antispam-Report: CIP:137.201.242.130;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:mail.micron.com;PTR:masquerade.micron.com;CAT:NONE;SFS:(4636009)(39860400002)(376002)(136003)(346002)(396003)(46966005)(55016002)(186003)(26005)(336012)(426003)(70586007)(5660300002)(83380400001)(2876002)(2906002)(4326008)(316002)(2616005)(54906003)(110136005)(478600001)(7696005)(107886003)(6286002)(36756003)(1076003)(82310400003)(8676002)(6666004)(82740400003)(7636003)(47076004)(70206006)(356005)(33310700002)(8936002)(86362001)(2101003);DIR:OUT;SFP:1101; X-OriginatorOrg: micron.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Sep 2020 16:47:22.0865 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 498ccff6-3a0c-45bc-4ba9-08d863ce2bd1 X-MS-Exchange-CrossTenant-Id: f38a5ecd-2813-4862-b11b-ac1d563c806f X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f38a5ecd-2813-4862-b11b-ac1d563c806f;Ip=[137.201.242.130];Helo=[mail.micron.com] X-MS-Exchange-CrossTenant-AuthSource: BN3NAM01FT028.eop-nam01.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR08MB2968 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nabeel M Mohamed This adds the Kconfig and Makefile for mpool. Co-developed-by: Greg Becker Signed-off-by: Greg Becker Co-developed-by: Pierre Labat Signed-off-by: Pierre Labat Co-developed-by: John Groves Signed-off-by: John Groves Signed-off-by: Nabeel M Mohamed --- drivers/Kconfig | 2 ++ drivers/Makefile | 1 + drivers/mpool/Kconfig | 28 ++++++++++++++++++++++++++++ drivers/mpool/Makefile | 11 +++++++++++ 4 files changed, 42 insertions(+) create mode 100644 drivers/mpool/Kconfig create mode 100644 drivers/mpool/Makefile diff --git a/drivers/Kconfig b/drivers/Kconfig index dcecc9f6e33f..547ac47a10eb 100644 --- a/drivers/Kconfig +++ b/drivers/Kconfig @@ -235,4 +235,6 @@ source "drivers/interconnect/Kconfig" source "drivers/counter/Kconfig" source "drivers/most/Kconfig" + +source "drivers/mpool/Kconfig" endmenu diff --git a/drivers/Makefile b/drivers/Makefile index c0cd1b9075e3..e2477288e761 100644 --- a/drivers/Makefile +++ b/drivers/Makefile @@ -188,3 +188,4 @@ obj-$(CONFIG_GNSS) += gnss/ obj-$(CONFIG_INTERCONNECT) += interconnect/ obj-$(CONFIG_COUNTER) += counter/ obj-$(CONFIG_MOST) += most/ +obj-$(CONFIG_MPOOL) += mpool/ diff --git a/drivers/mpool/Kconfig b/drivers/mpool/Kconfig new file mode 100644 index 000000000000..33380f497473 --- /dev/null +++ b/drivers/mpool/Kconfig @@ -0,0 +1,28 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Object Storage Media Pool (mpool) configuration +# + +config MPOOL + tristate "Object Storage Media Pool" + depends on BLOCK + default n + help + This module implements a simple transactional object store on top of + block storage devices. + + Mpool provides a high-performance alternative to file systems or + raw block devices for applications that can benefit from its simple + object storage model and unique features. + + If you want to use mpool, choose M here: the module will be called mpool. + +config MPOOL_ASSERT + bool "Object Storage Media Pool assert support" + depends on MPOOL + default n + help + Enables runtime assertion checking for mpool. + + This is a developer only config. If this config is enabled and any of the + asserts trigger, it results in a panic. diff --git a/drivers/mpool/Makefile b/drivers/mpool/Makefile new file mode 100644 index 000000000000..374bbe5bcfa0 --- /dev/null +++ b/drivers/mpool/Makefile @@ -0,0 +1,11 @@ +# SPDX-License-Identifier: GPL-2.0-or-later +# +# Makefile for Object Storage Media Pool (mpool) +# + +obj-$(CONFIG_MPOOL) += mpool.o + +mpool-y := init.o pd.o mclass.o smap.o omf.o \ + upgrade.o sb.o pmd_obj.o mblock.o \ + mlog_utils.o mlog.o mdc.o mpcore.o pmd.o \ + mp.o mpctl.o sysfs.o mcache.o reaper.o -- 2.17.2