From patchwork Wed Sep 6 15:01:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?UTF-8?q?Javier=20Gonz=C3=A1lez?= X-Patchwork-Id: 9940947 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id A801E60216 for ; Wed, 6 Sep 2017 15:01:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9C31D28BDE for ; Wed, 6 Sep 2017 15:01:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 910DE28C12; Wed, 6 Sep 2017 15:01:24 +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=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM 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 C990528BDE for ; Wed, 6 Sep 2017 15:01:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932789AbdIFPBU (ORCPT ); Wed, 6 Sep 2017 11:01:20 -0400 Received: from mail-wm0-f49.google.com ([74.125.82.49]:37502 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932699AbdIFPBQ (ORCPT ); Wed, 6 Sep 2017 11:01:16 -0400 Received: by mail-wm0-f49.google.com with SMTP id u26so32206174wma.0 for ; Wed, 06 Sep 2017 08:01:16 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=xR20oANhYOmtBGY6j7ijkpVB+PGNMSYNiy6uxz2vmNk=; b=OG9g5JfGlu5REyG6y5kCXkDgOHljD1PXYUOM3aO1+HJsP9vzHKlsR5xwhgqPKOOTkc 4IixiszrgpmE0Zz20Ak7slwtx/PU/R6kPvhgvAMDVKC0qIE6HjnH1SC7XrFhWVIoS6/s LX9w87fBomuDOWivF+CK3wBnZce7guR2eUm1d+HgbkXyszcBtDIPrPjRbzbWjhUUvEV+ GgHFfGnpcZbqPI96Rqi3SvXz0uYtCtOgl6RMZUgrLTH7dAwmyTMlAO8X7FdWIdQVnyln gYwnoiIacGEX0jV4AY/hjc5Ry4nsDJ7/XBMHxrdHkxbosmc911HHs18FXTkvNEVY5k7t LAtg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=xR20oANhYOmtBGY6j7ijkpVB+PGNMSYNiy6uxz2vmNk=; b=eD6wwYVX5W/bQUG+PIjCLvoP4ijbe8HkiH1cxqSy2we3N6DD5984Vo7r47Ls/z9Cmy eYrJhNgaL7X3eVZRru38/hHCvBXKAHWZMhLzIWPjPqOIpbT7+MMe29M7r0KDZoCNZglO cp9DmCFTbcMxZNv3P6PFhHxxpaYPwDyHowcYk0wYbJXq7L0o197mH3lgeNyW5LSQyxVg /ZR+hlEl9jUiEiRJ5NlO1b4w4XmzapnEodGYVz6KSQ/VNSTWPLkIG9WQzm9sgEhUHbDp XQ65fjW37sta8xSND2qPX/kVRmoDSejTaSxl7UfW00qrrMV0qn4iw+JOxIvIeRIdwlKp fZaQ== X-Gm-Message-State: AHPjjUgg1Fo+gpEA68os+uRbecXFRiWRbs6Xn2S5rQitSIuYg5pT9NcZ snsRkPyUjD+wCOeU X-Google-Smtp-Source: ADKCNb6KcfflTCWZldgjBi/g+h9vqYbERZWrItLG3B8RnFJK+XtzbeHoG/0gq571/buZNreH5YEZSg== X-Received: by 10.80.222.3 with SMTP id z3mr34540edk.214.1504710075518; Wed, 06 Sep 2017 08:01:15 -0700 (PDT) Received: from uHalley.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id p16sm1408260eda.78.2017.09.06.08.01.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 06 Sep 2017 08:01:15 -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, axboe@fb.com Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, =?UTF-8?q?Javier=20Gonz=C3=A1lez?= , =?UTF-8?q?Matias=20Bj=C3=B8rling?= Subject: [PATCH 2/6] lightnvm: pblk: initialize debug stat counter Date: Wed, 6 Sep 2017 17:01:02 +0200 Message-Id: <1504710066-4699-3-git-send-email-javier@cnexlabs.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1504710066-4699-1-git-send-email-javier@cnexlabs.com> References: <1504710066-4699-1-git-send-email-javier@cnexlabs.com> 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 Initialize the stat counter for garbage collected reads. Fixes: a4bd217b43268 ("lightnvm: physical block device (pblk) target") Signed-off-by: Javier González Signed-off-by: Matias Bjørling Reviewed-by: Johannes Thumshirn --- drivers/lightnvm/pblk-init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index 1b0f61233c21..8459434edd89 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -944,6 +944,7 @@ static void *pblk_init(struct nvm_tgt_dev *dev, struct gendisk *tdisk, atomic_long_set(&pblk->recov_writes, 0); atomic_long_set(&pblk->recov_writes, 0); atomic_long_set(&pblk->recov_gc_writes, 0); + atomic_long_set(&pblk->recov_gc_reads, 0); #endif atomic_long_set(&pblk->read_failed, 0);