]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: Print invalid SGL only once
authorKeith Busch <keith.busch@intel.com>
Fri, 15 Sep 2017 17:05:38 +0000 (13:05 -0400)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Sep 2017 14:56:05 +0000 (08:56 -0600)
commit81e985c2ba0facc53c063fc82a418d5e8b4eecc4
treea038a10f318185bbf4eddcb8dc59d52d09032213
parent9c07b7d567d1907ab7a9b987abce0b6d93931ec2
nvme-pci: Print invalid SGL only once

The WARN_ONCE macro returns true if the condition is true, not if the
warn was raised, so we're printing the scatter list every time it's
invalid. This is excessive and makes debugging harder, so this patch
prints it just once.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/pci.c