diff options
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-10-09 14:11:53 +0300 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 17:25:07 +0300 |
commit | f29372322e415999f429d3e3883b865c87860b46 (patch) | |
tree | a4f2da7c649d36b6f36d59e534da1d93b0a065bb /drivers/lightnvm/pblk-init.c | |
parent | 4c44abf43d00d81f5c648f376c436a9405980efc (diff) | |
download | linux-f29372322e415999f429d3e3883b865c87860b46.tar.xz |
lightnvm: pblk: add trace events for line state changes
Add trace events for logging for line state changes.
Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/lightnvm/pblk-init.c')
-rw-r--r-- | drivers/lightnvm/pblk-init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index 4f2d9b502028..fca37da16266 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -985,6 +985,9 @@ static int pblk_lines_init(struct pblk *pblk) goto fail_free_lines; nr_free_chks += pblk_setup_line_meta(pblk, line, chunk_meta, i); + + trace_pblk_line_state(pblk_disk_name(pblk), line->id, + line->state); } if (!nr_free_chks) { |