]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Remove use of kmalloc() in trace event logging
authorJames Smart <jsmart2021@gmail.com>
Wed, 7 Jul 2021 18:43:33 +0000 (11:43 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 19 Jul 2021 02:30:34 +0000 (22:30 -0400)
commita54f6351571e9ea2d69eba6fc060b02ac94d6ea9
tree0bd3796c98aa45c1ed32ffc841f1b46f3ca071b1
parentf1bf720c0d48247a03cc2767d4496204659ff98a
scsi: lpfc: Remove use of kmalloc() in trace event logging

There are instances when trace event logs are triggered from an interrupt
context. The trace event log may attempt to alloc memory causing scheduling
while atomic bug call traces.

Remove the need for the kmalloc'ed vport array when checking the
log_verbose flag, which eliminates the need for any allocation.

Link: https://lore.kernel.org/r/20210707184351.67872-3-jsmart2021@gmail.com
Co-developed-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: Justin Tee <justin.tee@broadcom.com>
Signed-off-by: James Smart <jsmart2021@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c