diff options
author | Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com> | 2021-02-10 06:47:53 +0100 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-02-10 16:38:04 +0100 |
commit | aa0aff604a60627b9f6c51c99dd5f63634322668 (patch) | |
tree | 2f0a3b7f36c827d63fc8f2e12aa3333808a0fb28 /drivers/ata/pata_hpt37x.c | |
parent | nvmet: set status to 0 in case for invalid nsid (diff) | |
download | linux-aa0aff604a60627b9f6c51c99dd5f63634322668.tar.xz linux-aa0aff604a60627b9f6c51c99dd5f63634322668.zip |
nvmet: return uniform error for invalid ns
For nvmet_find_namespace() error case we have inconsistent error code
mapping in the function nvmet_get_smart_log_nsid() and
nvmet_set_feat_write_protect().
There is no point in retrying for the invalid namesapce from the host
side. Set the error code to the NVME_SC_INVALID_NS | NVME_SC_DNR which
matches what we have in nvmet_execute_identify_desclist().
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/ata/pata_hpt37x.c')
0 files changed, 0 insertions, 0 deletions