commit | d08774738446e77734777adcf5d1045237b4475a | [log] [tgz] |
---|---|---|
author | Keith Busch <keith.busch@intel.com> | Fri Sep 15 13:05:38 2017 -0400 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Sep 25 08:56:05 2017 -0600 |
tree | a038a10f318185bbf4eddcb8dc59d52d09032213 | |
parent | 161b8be2bd6abad250d4b3f674bdd5480f15beeb [diff] |
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>