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)
commit86eea2895d11dde9bf43fa2046331e84154e00f4
tree8a67f36be148096c4beb15f4a0cc5c9c2d727a4e
parentf99cb7af40f99703bacf1640dc8a4b09062c1f0f
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