diff options
author | Javier González <jg@lightnvm.io> | 2017-06-26 11:57:13 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-06-26 16:24:53 -0600 |
commit | db7ada33cdcae7fef0a088141b1e4ab8c25fd395 (patch) | |
tree | 10e098319a92916b999c5b52e532306ec65e9f57 /drivers/lightnvm/pblk-init.c | |
parent | caa69fa560025d12c276abd62d58a87b94324708 (diff) | |
download | op-kernel-dev-db7ada33cdcae7fef0a088141b1e4ab8c25fd395.zip op-kernel-dev-db7ada33cdcae7fef0a088141b1e4ab8c25fd395.tar.gz |
lightnvm: pblk: add debug stat for read cache hits
Add a new debug counter to measure cache hits on the read path
Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
-rw-r--r-- | drivers/lightnvm/pblk-init.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index aaefbcc..2d79336 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -839,6 +839,7 @@ static void *pblk_init(struct nvm_tgt_dev *dev, struct gendisk *tdisk, atomic_long_set(&pblk->sync_writes, 0); atomic_long_set(&pblk->compl_writes, 0); atomic_long_set(&pblk->inflight_reads, 0); + atomic_long_set(&pblk->cache_reads, 0); atomic_long_set(&pblk->sync_reads, 0); atomic_long_set(&pblk->recov_writes, 0); atomic_long_set(&pblk->recov_writes, 0); |