]> 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)
commit165e597fc279afef1feb218f27d8e049a6672ab9
tree0bd3796c98aa45c1ed32ffc841f1b46f3ca071b1
parent51f4f99493782f35b832d8150a9d7a4f7aee44a5
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