]> git.baikalelectronics.ru Git - kernel.git/commit
nvmet: Change return code of discard command if not supported
authorIsrael Rukshin <israelr@mellanox.com>
Tue, 30 Jan 2018 10:07:01 +0000 (10:07 +0000)
committerSagi Grimberg <sagi@grimberg.me>
Wed, 14 Feb 2018 13:38:59 +0000 (15:38 +0200)
commitaee5ae4ababc7619af10082a1fbedf2123d57e09
tree98b3c060942721672531a75b56971ad9f695341d
parent5c8cbe5107aeaead2cbcdb8860933d6a0dba0f50
nvmet: Change return code of discard command if not supported

Execute discard command on block device that doesn't support it
should return success.
Returning internal error while using multi-path fails the path.

Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Signed-off-by: Israel Rukshin <israelr@mellanox.com>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/io-cmd.c