diff options
author | Igor Konopko <igor.j.konopko@intel.com> | 2019-05-04 20:37:54 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-05-06 10:19:17 -0600 |
commit | d38954ed1b76a2814057cd4af92c6966bceb3d3c (patch) | |
tree | 1d3ea312afe100f2feb4d3e91759a37bb335dfe7 /include/misc | |
parent | 6e46b8b24ffbc4ecb5b606094dbc8ed5d6281f59 (diff) | |
download | linux-d38954ed1b76a2814057cd4af92c6966bceb3d3c.tar.bz2 |
lightnvm: pblk: set proper read status in bio
Currently in case of read errors, bi_status is not set properly which
leads to returning inproper data to layers above. This patch fix that
by setting proper status in case of read errors.
Also remove unnecessary warn_once(), which does not make sense
in that place, since user bio is not used for interation with drive
and thus bi_status will not be set here.
Signed-off-by: Igor Konopko <igor.j.konopko@intel.com>
Reviewed-by: Javier González <javier@javigon.com>
Reviewed-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 'include/misc')
0 files changed, 0 insertions, 0 deletions