From patchwork Fri Oct 13 12:46:01 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Matias_Bj=C3=B8rling?= X-Patchwork-Id: 10004647 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 E356660360 for ; Fri, 13 Oct 2017 13:01:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D656A23201 for ; Fri, 13 Oct 2017 13:01:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB0CC2905C; Fri, 13 Oct 2017 13:01:25 +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.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_HI,RCVD_IN_SORBS_SPAM autolearn=unavailable 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 71A7423201 for ; Fri, 13 Oct 2017 13:01:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758190AbdJMNBK (ORCPT ); Fri, 13 Oct 2017 09:01:10 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:46071 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758120AbdJMMrT (ORCPT ); Fri, 13 Oct 2017 08:47:19 -0400 Received: by mail-wm0-f65.google.com with SMTP id q124so21259364wmb.0 for ; Fri, 13 Oct 2017 05:47:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bjorling.me; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1vSJeQ7rkEAvzIvC0KImvMolE1Hkj5uKpydikle1ROc=; b=J3P5zBn+u+qdrQnCRMOCQfLKHteJIp1XiBXpl3iX9p8MY3U0y7HMKyEIts1ZYZbjru v0t6a8XAuz+NwvFpGW7gdj9Am1/lmb0X7XFJ23b9/itv9XpObkc36e0InmKirilp1BOc t19nNeenSVcdfD0ad65QZfTFE66KxELI5I1L8= 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=1vSJeQ7rkEAvzIvC0KImvMolE1Hkj5uKpydikle1ROc=; b=tgQt38n3GL9J/e4mYOf72uNLdJ8bLfuUESzqy8PVjlXpcMbITXukOraYltfF8yd/2C 31gx0owUqINDRFKgL+XDxtpGj1YUx5H7Aw6GskhPs8t3w/71QOfpgMODjZE+BsL6vyzb rv0tK4lGo52+d/6e5Ml+66hTsmsNmWqcVFyxUoIdqy5dH6tveKDXulV/CjKb/yTjCPmS UX4Wg2vlxMIMep6ClKDlnZpC6piUXBTZ/TkQ6y/D1R9pfepaj90NQdlyL5W2lLl+gUiW 7EsukycgzruPc+IzLEtZzO/RbSeqzKjfrWT9HFqPnlKPuq8beh23t1UNtIfJb6YAAtt/ 2Bmg== X-Gm-Message-State: AMCzsaVmxwyT7rmhrtMLTmERCxpGeytQUn69syWVqOrBzsGwejSpQ4U/ vtWiMY0UZjDzJ6yf+tCe+zutjQ== X-Google-Smtp-Source: AOwi7QBo+vWeweUovuEYqynEql28snTJx09kJKBtyFrEZL839mBm8AozpNGBkFX0TGZpA6GRt2XG0A== X-Received: by 10.80.241.91 with SMTP id z27mr2052117edl.35.1507898837835; Fri, 13 Oct 2017 05:47:17 -0700 (PDT) Received: from skyninja.cnexlabs.com (6164211-cl69.boa.fiberby.dk. [193.106.164.211]) by smtp.gmail.com with ESMTPSA id p91sm735012edp.69.2017.10.13.05.47.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Oct 2017 05:47:17 -0700 (PDT) From: =?UTF-8?q?Matias=20Bj=C3=B8rling?= To: 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: [GIT PULL 12/58] lightnvm: pblk: initialize debug stat counter Date: Fri, 13 Oct 2017 14:46:01 +0200 Message-Id: <20171013124647.32668-13-m@bjorling.me> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20171013124647.32668-1-m@bjorling.me> References: <20171013124647.32668-1-m@bjorling.me> 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 From: Javier González 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 --- 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 8c85779..8344511 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -947,6 +947,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);