diff options
author | Roman Bolshakov <r.bolshakov@yadro.com> | 2021-11-12 17:54:46 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-12-07 06:38:17 +0300 |
commit | 69002c8ce914ef0ae22a6ea14b43bb30b9a9a6a8 (patch) | |
tree | fb2aa5b48d7240ec362359d5fcf823aced55b540 /fs/open.c | |
parent | 7db0e0c8190a086ef92ce5bb960836cde49540aa (diff) | |
download | linux-69002c8ce914ef0ae22a6ea14b43bb30b9a9a6a8.tar.xz |
scsi: qla2xxx: Format log strings only if needed
Commit 598a90f2002c ("scsi: qla2xxx: add ring buffer for tracing debug
logs") introduced unconditional log string formatting to ql_dbg() even if
ql_dbg_log event is disabled. It harms performance because some strings are
formatted in fastpath and/or interrupt context.
Link: https://lore.kernel.org/r/20211112145446.51210-1-r.bolshakov@yadro.com
Fixes: 598a90f2002c ("scsi: qla2xxx: add ring buffer for tracing debug logs")
Cc: Rajan Shanmugavelu <rajan.shanmugavelu@oracle.com>
Cc: stable@vger.kernel.org
Signed-off-by: Roman Bolshakov <r.bolshakov@yadro.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'fs/open.c')
0 files changed, 0 insertions, 0 deletions