nvme: clear any SGL flags in passthru commands
authorLogan Gunthorpe <logang@deltatee.com>
Fri, 24 Jul 2020 17:25:12 +0000 (11:25 -0600)
committerChristoph Hellwig <hch@lst.de>
Wed, 29 Jul 2020 05:45:20 +0000 (07:45 +0200)
commit2bf5d3bbffad06639db518c8dcf8a14c7dce770e
tree02bc202bfbaf5ab02a22566a8d6cc9a93bc3f056
parentece0278c1c96905c53a6cbb253927530fc707cfa
nvme: clear any SGL flags in passthru commands

The host driver should decide whether to use SGLs or PRPs and they
currently assume the flags are cleared after the call to
nvme_setup_cmd(). However, passed-through commands may erroneously
set these bits; so clear them for all cases.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c