]> www.infradead.org Git - users/sagi/nvme-cli.git/commit
nvme: Return negative error value for internal errors
authorMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 23 May 2019 14:09:09 +0000 (23:09 +0900)
committerMinwoo Im <minwoo.im.dev@gmail.com>
Thu, 20 Jun 2019 14:23:10 +0000 (23:23 +0900)
commit8a50442a034ce9a4529300737ed7b674e766a7ec
treea52fc8b8f70606b8d5204e354e2171ebbd5747db
parentd3f37a54a363400119d512bfd74cbc5f1fb12b3c
nvme: Return negative error value for internal errors

To support the mapping of error values which will be introduced in the
next patches, All the internal errors caused in the middle of the
subcommands preparation or teardown should be returned as a negative
value to make it distinguished from nvme error status which is positive.

This patch makes all the internal error values which used to be returned
as a positive value to be returned as a negative value.

Cc: Keith Busch <kbusch@kernel.org>
Signed-off-by: Minwoo Im <minwoo.im.dev@gmail.com>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
nvme.c