lightnvm: pblk: add tracing for chunk resets

Trace state of chunk resets.

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>
This commit is contained in:
Hans Holmberg
2018-10-09 13:11:55 +02:00
committed by Jens Axboe
parent 1b0dd0bf3d
commit 4209c31c0c
3 changed files with 49 additions and 0 deletions

View File

@@ -79,6 +79,12 @@ enum {
PBLK_BLK_ST_CLOSED = 0x2,
};
enum {
PBLK_CHUNK_RESET_START,
PBLK_CHUNK_RESET_DONE,
PBLK_CHUNK_RESET_FAILED,
};
struct pblk_sec_meta {
u64 reserved;
__le64 lba;