summaryrefslogtreecommitdiff
path: root/drivers/lightnvm/pblk.h
diff options
context:
space:
mode:
authorJavier González <javier@cnexlabs.com>2018-01-05 16:16:20 +0300
committerJens Axboe <axboe@kernel.dk>2018-01-05 18:50:12 +0300
commit998ba62973132e886b0411f00bc66fbb31507e84 (patch)
tree9d883aff6821c4176a8c4daec6fd5f5ecfb426c1 /drivers/lightnvm/pblk.h
parent30d82a8631428709c436ea5568bf68fe7cfaf8e8 (diff)
downloadlinux-998ba62973132e886b0411f00bc66fbb31507e84.tar.xz
lightnvm: pblk: add iostat support
Since pblk registers its own block device, the iostat accounting is not automatically done for us. Therefore, add the necessary accounting logic to satisfy the iostat interface. Signed-off-by: Javier González <javier@cnexlabs.com> Signed-off-by: Matias Bjørling <m@bjorling.me> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk.h')
-rw-r--r--drivers/lightnvm/pblk.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lightnvm/pblk.h b/drivers/lightnvm/pblk.h
index 93ec4fd2c26e..8af374ee54c5 100644
--- a/drivers/lightnvm/pblk.h
+++ b/drivers/lightnvm/pblk.h
@@ -113,6 +113,7 @@ struct pblk_c_ctx {
/* read context */
struct pblk_g_ctx {
void *private;
+ unsigned long start_time;
u64 lba;
};