From patchwork Tue Aug 14 13:17:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Matias Bjorling X-Patchwork-Id: 10565617 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5586E14C0 for ; Tue, 14 Aug 2018 13:17:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 461F129987 for ; Tue, 14 Aug 2018 13:17:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3904029B15; Tue, 14 Aug 2018 13:17:49 +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=-7.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,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 A07DD29987 for ; Tue, 14 Aug 2018 13:17:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732414AbeHNQEz (ORCPT ); Tue, 14 Aug 2018 12:04:55 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46757 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730488AbeHNQEz (ORCPT ); Tue, 14 Aug 2018 12:04:55 -0400 Received: by mail-lj1-f196.google.com with SMTP id 203-v6so15296392ljj.13 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=T4CyNYt1ruZYN+nPrta0syxsnmWvQpMN7yBO2BN+1ZSCANd3l1Uh9pLCFfTF9bqsUm WQylyBxBbJrIUbx7oaJssYVqtqT7j/W4+zyQTj43ZNV2ZjvfOcYJM9pN0X2A3vDLzrjv ktgL/GpF49/n0Er2D32PQCp+V+50wq88FkPJeynlMdck0cX3+Kq6S6aGaMEb35rM6kTm G4Nhi/K4wm+JKVlKHsw2x5R92JAP/8/VeqZ6SUXYBawMuZvJJBbqMueQiiUT24qf0FOW Bx70wwMaFCbcfCYbV5Wzcg26E4crIpbf5xUbK+xdTgBvqqiquuRlgHJD7khqh/n725Mn IIuw== X-Gm-Message-State: AOUpUlFIkRr8QSlZy3iWI3IPsb38KcZRnIe6NKEvM0zSTdQH9RJGQWeE oUhku2xu4/R3aniFBY7lL36i5g== X-Google-Smtp-Source: AA+uWPyRq8uaCFJDHuXBPe6/wcmCHR6WQ8K+0PrfjjAAVYu5jN6Ipija1ljg5Sr6wPoBvykZU1S+fw== 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_Bj=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?Mat?= =?utf-8?q?ias_Bj=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 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 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(-)