Received: by 2002:a4a:311b:0:0:0:0:0 with SMTP id k27-v6csp4457562ooa; Tue, 14 Aug 2018 06:18:58 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxXpeDO3vxRoYutjn68LGm3w0mKBGvbbTqk/UERLeR/Of2ebTCq6Y9iqNCI+5E5GgaB+q8T X-Received: by 2002:a63:5c10:: with SMTP id q16-v6mr21184050pgb.452.1534252738546; Tue, 14 Aug 2018 06:18:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534252738; cv=none; d=google.com; s=arc-20160816; b=vAQL1yJaVvG8lnqKEEwjd12YhprG8fqrOg8WPNMUOUxi7XJcIqOl0hsolXZTc04FbV EOo38z+wyeHa/r+xSOK5XsVrd1a80+UQddl67Rvw4W2JgbLxthOvalgjELeounTmFMGG 2/RdeZU3CBM4CYYbuLSWn5SzjXT4N6XWJALtPGDGGNXJbFlpES44+2oz9/7Kjp7tSVAr O4j8zRM3XZ6EQP+RxarcFmN8EFX5H5SLqRu0jh5fXjWjd7jvdRUdMGhsIL1LNSKUkgfZ 8+29ItTVPOZwU39xqQuAKclf8V3y2wg6A83duJXsbMAoWsjRq9MLFOkw14qa3ngk/FDy WsJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=TKVjPK8tv5iB+OXMv7YvO3q4b+l5mYBjMsHI0wcHlX8=; b=s+62t9KuXIazda7T3I4IKJ3v0DjrIafjvjYFxkx/j+I7RX4pbSEhD+U7WnF+eCFWVk YjMLB9VlP1ueocQRYxO3B6axwgtxmXSNRyh0Y2lJ3X5FzDU/M8cYIozFS+ZRTwrB7Cn/ XjJZeD9crKitcqj0D1at+7CZeU9w3Jon2X13CcDeMrATnfnMQ77ut8VfBjKlr2ewCPQM arBIj6SA+OKbTrG3EP+6JeLQewnX0xl8oVUk/7JrHwHb2+2daIzvXgM2nfjMEaExCmH8 IHjg16w368o2K+P/UO+cAwadvgGwj5k7kfYUI2oZW5+e4sjg47Th2jjh1sJMRRqcl3ro JklQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=q0+zuVLN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m124-v6si22200572pfm.303.2018.08.14.06.18.42; Tue, 14 Aug 2018 06:18:58 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lightnvm-io.20150623.gappssmtp.com header.s=20150623 header.b=q0+zuVLN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732716AbeHNQEz (ORCPT + 99 others); Tue, 14 Aug 2018 12:04:55 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:37425 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729955AbeHNQEz (ORCPT ); Tue, 14 Aug 2018 12:04:55 -0400 Received: by mail-lj1-f195.google.com with SMTP id v9-v6so15345678ljk.4 for ; Tue, 14 Aug 2018 06:17:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lightnvm-io.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TKVjPK8tv5iB+OXMv7YvO3q4b+l5mYBjMsHI0wcHlX8=; b=q0+zuVLNGTyqUatyBHxcSPYiKgXSV0UiSqKN4c+rrzlVvP0fH4gmypJ6PPAW68fNmx xBSKd2685/RBpI52v19YME6D/ALsJywYuXWMIOXHkvmLCFOuWlAYpCMowTMH9HwBNci6 ld9ZyCgoSrDhgkFxbTAYW8tJyAOqlfItB7wzgdIzOGyLJSRKYerwvYAF4e9MkBbTGs/W sC8JxSdK6uZY/Gdsn8BHmmjcoR6JXCDRUJa+Se+4Mw+2v+O5SjVmmrl/9Hdpo/dx9hmg rN6WhwGEFFnHo8bfcq0o0GHq3pJLGlhiIRvJaAiGcMWbwtaatmk4yY9Xyaymgh/g6p09 NEOQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=TKVjPK8tv5iB+OXMv7YvO3q4b+l5mYBjMsHI0wcHlX8=; b=d96A/yHloKBPxF1AnvoY15uStA1F0e3s1VapzgChvyAgmsE9ku8LJirvvLVkGrD56a 0QRx956suoCUwXdcm4RDOASJ3EVtAtfP+x35IbjmlM3mK0A166g43g6X8xDLaoKF0yJy UJ6TKFOyf1hLgoqoNV37L2pSDc4Bu4PRBDYM4WeCS6OqIfrZ1+cbBFLGIzL1LOMgxhq3 RBxQMJgXZuvwYxzhlr79Zha2CyfKfLpyJRJMxhyFwId0ymg9HFkgumihehGU6tOEXtIo NalWmH5uhnaV2V8VoFVffw6fdxsbC46qSmlxvLzZMbJf5I7RXwYH3vNvqFPdNW+rA+9i 4JjA== X-Gm-Message-State: AOUpUlGmNaOVXf1OesZls0uYNAhJeGF3dLjchtq78N3xpZnP6CoC37eP ae3B6adNqbF49kETJtUXy+DONA== X-Received: by 2002:a2e:2067:: with SMTP id g100-v6mr14844151ljg.138.1534252665965; Tue, 14 Aug 2018 06:17:45 -0700 (PDT) Received: from localhost.localdomain (95-166-82-66-cable.dk.customer.tdc.net. [95.166.82.66]) by smtp.gmail.com with ESMTPSA id r73-v6sm3926320lfi.34.2018.08.14.06.17.44 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 14 Aug 2018 06:17:44 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: igor.j.konopko@intel.com, marcin.dziegielewski@intel.com, javier@cnexlabs.com, hans.holmberg@cnexlabs.com, hlitz@ucsc.edu, youngtack.jin@circuitblvd.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [RFC PATCH 0/1] lightnvm: move bad block and chunk state logic to core Date: Tue, 14 Aug 2018 15:17:34 +0200 Message-Id: <20180814131735.6853-1-mb@lightnvm.io> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch moves the 1.2 and 2.0 block/chunk metadata retrieval to core. Javier, would you like me to pick up your 1.2 chunk state patch and merge it into this one, or would you like to rebase on this later when it has been reviewed? Matias Bjørling (1): lightnvm: move bad block and chunk state logic to core drivers/lightnvm/core.c | 166 ++++++++++++++++++++++++++++--------------- drivers/lightnvm/pblk-core.c | 6 +- drivers/lightnvm/pblk-init.c | 116 +----------------------------- drivers/lightnvm/pblk.h | 2 +- drivers/nvme/host/lightnvm.c | 4 +- include/linux/lightnvm.h | 15 ++-- 6 files changed, 122 insertions(+), 187 deletions(-) -- 2.11.0