diff options
author | Hans Holmberg <hans.holmberg@cnexlabs.com> | 2018-10-09 13:11:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-10-09 08:25:07 -0600 |
commit | 1b0dd0bf3dc8e9fb974d61139c182be15e43caf9 (patch) | |
tree | e50053b339986748faa9ca738f295ea40cfc6494 /drivers/lightnvm/pblk-init.c | |
parent | f29372322e415999f429d3e3883b865c87860b46 (diff) | |
download | linux-1b0dd0bf3dc8e9fb974d61139c182be15e43caf9.tar.gz linux-1b0dd0bf3dc8e9fb974d61139c182be15e43caf9.tar.bz2 linux-1b0dd0bf3dc8e9fb974d61139c182be15e43caf9.zip |
lightnvm: pblk: add trace events for pblk state changes
Add trace events for tracking pblk 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 | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/lightnvm/pblk-init.c b/drivers/lightnvm/pblk-init.c index fca37da16266..9aebdee8e4c9 100644 --- a/drivers/lightnvm/pblk-init.c +++ b/drivers/lightnvm/pblk-init.c @@ -1109,6 +1109,7 @@ static void *pblk_init(struct nvm_tgt_dev *dev, struct gendisk *tdisk, pblk->dev = dev; pblk->disk = tdisk; pblk->state = PBLK_STATE_RUNNING; + trace_pblk_state(pblk_disk_name(pblk), pblk->state); pblk->gc.gc_enabled = 0; if (!(geo->version == NVM_OCSSD_SPEC_12 || |