]> 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)
commitb6f6b2a41477a3e62ddc72fb1dafa70d7d619c88
tree8a67f36be148096c4beb15f4a0cc5c9c2d727a4e
parenta5cb0a1f6217550c57387a0c5ae51a67a71bb00d
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