diff options
| author | Chaitanya Kulkarni <[email protected]> | 2018-12-12 15:11:39 -0800 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2018-12-13 09:59:02 +0100 |
| commit | e4a976254ec5ebdcdb3e1e1b40e795b3db6b6dab (patch) | |
| tree | 2f8137e6d7953324185ec62e83dcf5ba0467dbe3 /lib/mpi/mpi-cmp.c | |
| parent | b34de7cee0a65f2557bb05447fbe2cc7a9c46750 (diff) | |
nvmet: add error-log definitions
This patch adds necessary fields in the target data structures to
support error log page. For a target controller, we add a new error log
field to maintain the error log, at any given point we maintain error
entries equal to NVMET_ERROR_LOG_SLOTS for each controller. In the
following patch, we also update the error log page entry in the I/O
completion path so we introduce a spinlock for synchronization of the
log.
For nvmet_req, we add a new field error_loc to hold the location of
the error in the command when the actual error occurs for each request
and a starting LBA if applicable.
Signed-off-by: Chaitanya Kulkarni <[email protected]>
Reviewed-by: Sagi Grimberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions