nvmet: fix file discard return status
authorSagi Grimberg <sagi@grimberg.me>
Wed, 11 Jul 2018 09:43:16 +0000 (12:43 +0300)
committerChristoph Hellwig <hch@lst.de>
Tue, 24 Jul 2018 13:55:50 +0000 (15:55 +0200)
commit1b72b71faccee986e2128a271125177dfe91f7b7
tree695d1f5db22e84715b438d789e9d6dd4eb824c5a
parent75862c72323e222656792370e2f240bc4029ff96
nvmet: fix file discard return status

If nvmet_copy_from_sgl failed, we falsly return successful
completion status.

Fixes: d5eff33ee6f8 ("nvmet: add simple file backed ns support")
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/io-cmd-file.c