From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751820AbdJCKGw (ORCPT ); Tue, 3 Oct 2017 06:06:52 -0400 Received: from mail-wm0-f45.google.com ([74.125.82.45]:52290 "EHLO mail-wm0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751736AbdJCKGu (ORCPT ); Tue, 3 Oct 2017 06:06:50 -0400 X-Google-Smtp-Source: AOwi7QCt3qoc83wIci+w1XFlNfFPBGvk/t+QnFeeJONs1cA429PZy0Greo9fzoj/TY9jpOJJUpwUFA== From: Hans Holmberg To: Matias Bjorling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, Javier Gonzales , Hans Holmberg Subject: [PATCH 0/9] recovery robustness improvements Date: Tue, 3 Oct 2017 12:05:04 +0200 Message-Id: <1507025113-13351-1-git-send-email-hans.ml.holmberg@owltronix.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Hans Holmberg This patchset improves the robustness of recovery - fixing a bunch of issues that occurs when removing and re-creating a pblk instance. It also adds a couple of debug-only prints to facilitate detection of L2P table corruptions. The patches apply on top of: https://github.com/OpenChannelSSD/linux branch for-4.15/pblk Hans Holmberg (9): lightnvm: pblk: prevent gc kicks when gc is not operational lightnvm: pblk: recover partially written lines correctly lightnvm: pblk: free full lines during recovery lightnvm: pblk: start gc if needed during init lightnvm: pblk: consider bad sectors in emeta during recovery lightnvm: pblk: shut down gc gracefully during exit lightnvm: pblk: add l2p crc debug printouts lightnvm: pblk: gc all lines in the pipeline before exit lightnvm: pblk: correct valid lba count calculation drivers/lightnvm/pblk-core.c | 3 ++ drivers/lightnvm/pblk-gc.c | 88 +++++++++++++++++++++++++++------------- drivers/lightnvm/pblk-init.c | 47 ++++++++++++++++++--- drivers/lightnvm/pblk-map.c | 7 ++-- drivers/lightnvm/pblk-recovery.c | 46 ++++++++++++++------- drivers/lightnvm/pblk-sysfs.c | 2 +- drivers/lightnvm/pblk.h | 6 ++- 7 files changed, 145 insertions(+), 54 deletions(-) -- 2.7.4