]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Remove nvme_setup_prps BUG_ON
authorKeith Busch <keith.busch@intel.com>
Wed, 12 Jul 2017 19:59:07 +0000 (15:59 -0400)
committerJens Axboe <axboe@kernel.dk>
Thu, 20 Jul 2017 14:41:56 +0000 (08:41 -0600)
commita53c987fcafd717d7a6d4519f3c1adabe4419759
tree8a67f36be148096c4beb15f4a0cc5c9c2d727a4e
parentd3a972ad4ce559c26b6b5dcd88e7985bac112540
nvme-pci: Remove nvme_setup_prps BUG_ON

This patch replaces the invalid nvme SGL kernel panic with a warning,
and returns an appropriate error. The warning will occur only on the
first occurance, and sgl details will be printed to help debug how the
request was allowed to form.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c