Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp410335imm; Wed, 29 Aug 2018 03:11:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdadutIgh5oaIiuLceS6ZEbrB3AVeblLaleQNwvtA91RAFGtojlHeL12S/70d4zWGO3lNCeK X-Received: by 2002:a63:9841:: with SMTP id l1-v6mr4945072pgo.228.1535537492759; Wed, 29 Aug 2018 03:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535537492; cv=none; d=google.com; s=arc-20160816; b=oUrTqj9jtCwkQitLAlzmY27nsJ8iFOPG6viTIfXOmA2YxIEVFOXtmuVEUY3xH7ukfF nD8VTOfRvBXK7BkL1OK2d+9OpnX7Si+VEGyzudD7Xo3N6SvaVPbjga6qtFIKAFVDqlFn OC28OWUjWDI9GTwdSIoDf+cQICMRj/tqn5hzPvi5Ae1jK9A5KLVHBS6g/kN2sD9snMVw NM1D7e98St7gp5TsuRk1Ubz37GBvUwOWQGZsKnwpOShzYqdkxqO4MKfPKOWNykJTUVo9 DxNvCaC+mmt9dA3eluu2O/CQKWFVEM5cUlF+fXGbk49LxSzIp7rZge4P1AaIWWD1uZbD lMtA== 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=jHY1u6vtCbAE4lV4L2cBKtvB1ns8sSlx5vp2Kn8HND4=; b=vqh3TOhjt6rkid/OnsF/5OFrxg5c7IuVUiGff4upC+bgs7wu7ltBZNSovX2NvFTRfJ 0863v9MjOjLIQWQc+cR04ZBfen1oMNkrJjC58OM4JXvgeC1ipXyVthyuvBxAUnKtzBr2 0edfhocBbNs/En1Fg/cOvKdKaD6r9Bp9a0ttFQq8U//VUR/q0xsYzbKCEVEKigLe/Biz odUim3K4kRll6AuJJJIfEXw/Ocpw/LJ4VOs70D7pUB3mwJCRK/0fbMN4R3CyiATvzyg/ syY0/PSkTpJIsP3D9Y30roBFF9o3wX2MordzZ+1zNDYVOpE6AmO86hW40pObr7MhAK51 /74g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=kQ1MsPyl; 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 r8-v6si3766095pgs.144.2018.08.29.03.11.16; Wed, 29 Aug 2018 03:11:32 -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=@javigon-com.20150623.gappssmtp.com header.s=20150623 header.b=kQ1MsPyl; 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 S1728254AbeH2OF7 (ORCPT + 99 others); Wed, 29 Aug 2018 10:05:59 -0400 Received: from mail-it0-f67.google.com ([209.85.214.67]:56070 "EHLO mail-it0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728242AbeH2OF7 (ORCPT ); Wed, 29 Aug 2018 10:05:59 -0400 Received: by mail-it0-f67.google.com with SMTP id d10-v6so6842890itj.5 for ; Wed, 29 Aug 2018 03:09:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=javigon-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=jHY1u6vtCbAE4lV4L2cBKtvB1ns8sSlx5vp2Kn8HND4=; b=kQ1MsPyljKKYOm3zuzIwtIj22o/TAt5bPTtLLEHseCJqOB4UuQDtvsQM/aivjM09IC RwMhsM9k8+5n8uMNCv3f6z3hKpRURcO3amgYUaJu1bOtGUzboZFT7btHquICl0rpBq5G yKmmK6w66o/Nqfx3pRWcblqUpaCcTzl2gJaASn/cJnvIeeEr7gnXzaXksc+coUyCn4i1 f9PlbI13/2tAbKqiea/ABxvQdfEFP8tOhmZp+KsQ6V+06aH7EhHeFp09xouJPLSk9WJz Q58hogtv9hPUBuWG5aCRzx4zYh6YDxifAQEqBiagPnLHXhY8/cSkfsSPwQleX/WwM9J+ uB8Q== 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=jHY1u6vtCbAE4lV4L2cBKtvB1ns8sSlx5vp2Kn8HND4=; b=WpBUUArJK/erDxXqRgKhOFp5xi0GaLCzCBRoozpqxnrjHizun5AISnHjtrrgjsIpSN oDY0iNJyIY7roz+RjBfPcXXgrt0Ep5PDwPeXW4FnZKN9iMUH4CWTFElfKDbDT7f8wHsF pynE9psOYcBe+qKDB+/KcNMiqo8hSZwMXavQG0rUn9HxEvAPql6yqVnLkr1GAOoceULN TydQ7nYTfyewMMAEkQIfXev2NyyM5tbDJDg2c5PWt09QDRhWX5PYrIguOLQLHhsI5iSK XJzOb0/IvrUyD1aE1NX+CDVS1TmlwPs8pwO59lLj975x4u418+D/Kx2D/++KxQU9F5BV gA5A== X-Gm-Message-State: APzg51AsJEsA4SFGjaa5DaaD2+/NdMP3byAWs0NMZ8/xBMGPRCWSpuRZ mHhjvEve0Jc6IT4XJkpIHqKf7w== X-Received: by 2002:a24:e142:: with SMTP id n63-v6mr4429594ith.94.1535537390134; Wed, 29 Aug 2018 03:09:50 -0700 (PDT) Received: from ch-wrk-javier.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id v14-v6sm1721501iog.42.2018.08.29.03.09.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 29 Aug 2018 03:09:49 -0700 (PDT) From: "=?UTF-8?q?Javier=20Gonz=C3=A1lez?=" X-Google-Original-From: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= To: mb@lightnvm.io Cc: igor.j.konopko@intel.com, marcin.dziegielewski@intel.com, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= Subject: [PATCH 0/3] lightnvm: pblk: support variable OOB size Date: Wed, 29 Aug 2018 12:09:27 +0200 Message-Id: <1535537370-10729-1-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 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 patchset adds pblk support for variable metadata sizes on the out of bound area. Igor, Marcin, you sent a patch some time ago implementing a similar functionality, but it never got re-posted after review. Can you test this and see if it works for your case? I did not implement support for outlined metadata for the case where the reported OOB area is 0. It should be pretty simple to do that on top of these patches though. Thanks, Javier Javier González (3): lightnvm: use internal allocation for chunk log page lightnvm: do no update csecs and sos on 1.2 lightnvm: pblk: support variable OOB size drivers/lightnvm/pblk-core.c | 60 ++++++++++++++++++++++++++++++---------- drivers/lightnvm/pblk-init.c | 16 ++++++++++- drivers/lightnvm/pblk-map.c | 19 +++++++++---- drivers/lightnvm/pblk-read.c | 55 ++++++++++++++++++++++-------------- drivers/lightnvm/pblk-recovery.c | 34 ++++++++++++++++------- drivers/lightnvm/pblk.h | 18 +++++++++--- drivers/nvme/host/lightnvm.c | 26 +++++++++++------ 7 files changed, 164 insertions(+), 64 deletions(-) -- 2.7.4