Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1727577
| From | "Javier González" <jg@lightnvm.io> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 2/6] lightnvm: pblk: initialize debug stat counter |
| Date | 2017-09-06 17:10 +0200 |
| Message-ID | <umK7M-3vz-31@gated-at.bofh.it> (permalink) |
| References | <umK7L-3vz-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Initialize the stat counter for garbage collected reads.
Fixes: a4bd217b43268 ("lightnvm: physical block device (pblk) target")
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
---
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);
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH 2/6] lightnvm: pblk: initialize debug stat counter "Javier González" <jg@lightnvm.io> - 2017-09-06 17:10 +0200 Re: [PATCH 2/6] lightnvm: pblk: initialize debug stat counter Johannes Thumshirn <jthumshirn@suse.de> - 2017-09-06 17:20 +0200
csiph-web