]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09b8a5cfd61f9034f035ba7b95c848c9fcc09e85
tree02bc202bfbaf5ab02a22566a8d6cc9a93bc3f056
parent0e782e119a67d6b759bc103b1adee4e70be745f2
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