Received: by 10.192.165.156 with SMTP id m28csp923408imm; Thu, 19 Apr 2018 09:43:10 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/sfumABKzqf0CT5poOQYfiSb01F7dgFQe4aDBe/6mXZtL3WyNOORL4Ohntmi7yxFEDeSy2 X-Received: by 2002:a17:902:2826:: with SMTP id e35-v6mr6799758plb.348.1524156190742; Thu, 19 Apr 2018 09:43:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524156190; cv=none; d=google.com; s=arc-20160816; b=VixAPGwJTXz6osJMRZWqBARYwyeqYz2lJIlZojCWFjNJ8tk2AvZC7VNsmeeBCxiVX1 fVyuNdfzbrlp4Kw9k7X0Ar8WbJ76hrzxkpfk+WRigII/2OFVqojc2GCliCiV13ovbq2q LtyCgyTfRTBeZj5ujZMD8qxnd8uMhcajEA3bdPu2wJ4pYWHrpYcWXkmC5hP9N7o96iuN dsayGxTcR6ya9iC/PXsbkvSFpT6l4aX77y5Ab4pPU/O+yQ5Po3cL4xAc7OoIfZZiNM5P HF+BWuLlQvvlRGpoR+48ynViQdXdibhNB39RPWvynjvq9IDAqjTAJ3WYB6xRiDlZwkJ3 QviA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=q+uGqijqnCDiNI84JohB+FJ6lCcVPf1USXAa5woBn7Y=; b=yEksjsFmH/fg3oduBim/taYmpt7I0G6MmGGRnrt5Ip3hllmbBIdEFJxl//Fm03CjAo ezZ5VGcFDJliw74G3wqQ1oW8DYQTYgU/JLmBd/Lt/9w1xoTsKccfWjLr20I/y6YYy+wo ApiZBWhon3NcCJWfhpTwDL6zXNpdANtVmqZj7EqrpoQNwYheKCqHkAhz70eNcFckBErF fF/iarNjH0Bz88caGIen5zHJnB2u6WeqVNxrRnKgJ8G1lN8x5gQTDUcgTEkzBq6wkxvF 8K7XvVUqQR5+zH8Py+xcmDwSsOgsE7Yn1Oe20CYJ6X5sYGWFQnUoltRzS1ydGH09p6pE xUEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=ZJGbNUzB; 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 u64si3388740pgc.136.2018.04.19.09.42.55; Thu, 19 Apr 2018 09:43:10 -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=@owltronix-com.20150623.gappssmtp.com header.s=20150623 header.b=ZJGbNUzB; 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 S1754172AbeDSQlR (ORCPT + 99 others); Thu, 19 Apr 2018 12:41:17 -0400 Received: from mail-lf0-f67.google.com ([209.85.215.67]:45290 "EHLO mail-lf0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753874AbeDSQkK (ORCPT ); Thu, 19 Apr 2018 12:40:10 -0400 Received: by mail-lf0-f67.google.com with SMTP id q5-v6so1076235lff.12 for ; Thu, 19 Apr 2018 09:40:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=owltronix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=q+uGqijqnCDiNI84JohB+FJ6lCcVPf1USXAa5woBn7Y=; b=ZJGbNUzB6GVrEcObV71v1zGrTT86gKITBJQsFN2putEoredje0Hz1qJqa9b+D5bayB d+IsRpgkSSxQOy9Oiz9I2J+JhKPb8D8zdqzvnv3YcZYLYxZFw92XOpvgq0rP8EQrorxz vRelEdWIM1GHb1AiYU5aShfz709BmLWEI7TyqSOY4KlSZkzyInmjMgCpfAXb0wrfYeRc uWgibrCePKSlOTrBjCPoTlJe/Ecef5cUxmOt5qJKKc/b3NCgQvyZveV5VZR5ohI5kSqw 97yMyzF83Es2625jaxXbB8BhvZt9+ozYr0qnOq2S0GksZ/Cr7CaF0VdKf0bFcUb2xifi 9HDg== 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; bh=q+uGqijqnCDiNI84JohB+FJ6lCcVPf1USXAa5woBn7Y=; b=QZRhud969eqDrdg1qdnbcFmI+iHVv+wEWurlBqrdOB2fgsZJRcVq52aR2Uox2QbCoQ 5us/wK8qOtuIQ96hG9pc0OpLkErXxOfFBBTO1xu8g/jzUr6IWkw9mWoLBC6vvql3EvRk yrIrZhjiJCcFVfP80OhwR7HzB11LVG6kK+yi7fW/IVcVI8rclZIf79A3AqGXKwNazdqy cZRi4fQKbdxxTPuNCWdmt0JBVB28YDndi/nblm0qMnUQ6OWmgNzzG0A83z7ZKh/+AYWV kgfjPK/WiOAwRXO/EuRPdxEgKBYdWi6Bq5uYa2bYd3QIqbxLPQD8v34dv+Wf8fiC+7tF tEbA== X-Gm-Message-State: ALQs6tAuQg/Iey9mGkcLsyZGybeve5DeacQl7SW3tQM/rK5EJnikXUwJ p9EnoVkax7TIYi8UCiNRPMY1rw== X-Received: by 2002:a19:d911:: with SMTP id q17-v6mr430006lfg.99.1524156009575; Thu, 19 Apr 2018 09:40:09 -0700 (PDT) Received: from titan.bredbandsbolaget.se (c-b9b6e655.03-91-6d6c6d4.cust.bredbandsbolaget.se. [85.230.182.185]) by smtp.gmail.com with ESMTPSA id a21-v6sm831554lfl.15.2018.04.19.09.40.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Apr 2018 09:40:09 -0700 (PDT) From: Hans Holmberg To: Matias Bjorling Cc: linux-block@vger.kernel.org, Javier Gonzales , linux-kernel@vger.kernel.org, Hans Holmberg Subject: [PATCH 0/3] Rework write error handling in pblk Date: Thu, 19 Apr 2018 18:39:21 +0200 Message-Id: <1524155964-3743-1-git-send-email-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg This patch series fixes the(currently incomplete) write error handling in pblk by: * queuing and re-submitting failed writes in the write buffer * evacuating valid data data in lines with write failures, so the chunk(s) with write failures can be reset to a known state by the fw Lines with failures in smeta are put back on the free list. Failed chunks will be reset on the next use. If a write failes in emeta, the lba list is cached so the line can be garbage collected without scanning the out-of-band area. Hans Holmberg (3): lightnvm: pblk: rework write error recovery path lightnvm: pblk: garbage collect lines with failed writes lightnvm: pblk: fix smeta write error path drivers/lightnvm/pblk-core.c | 50 +++++++- drivers/lightnvm/pblk-gc.c | 79 ++++++++----- drivers/lightnvm/pblk-init.c | 41 +++++-- drivers/lightnvm/pblk-recovery.c | 91 --------------- drivers/lightnvm/pblk-rl.c | 29 ++++- drivers/lightnvm/pblk-sysfs.c | 15 ++- drivers/lightnvm/pblk-write.c | 243 ++++++++++++++++++++++++++++----------- drivers/lightnvm/pblk.h | 33 ++++-- 8 files changed, 362 insertions(+), 219 deletions(-) -- 2.7.4