diff options
| author | James Smart <[email protected]> | 2019-08-14 16:56:43 -0700 |
|---|---|---|
| committer | Martin K. Petersen <[email protected]> | 2019-08-19 22:41:09 -0400 |
| commit | 3ad348d94452d6ab3aa0316105fb9f34f8ed3140 (patch) | |
| tree | 91ad77e2ca9b658f9a9402a31c36e859e99974a9 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 4b0a42be26dd89cefaac89330070222ac8e14c01 (diff) | |
scsi: lpfc: Fix oops when fewer hdwqs than cpus
When tearing down the adapter for a reset, online/offline, or driver
unload, the queue free routine would hit a GPF oops. This only occurs on
conditions where the number of hardware queues created is fewer than the
number of cpus in the system. In this condition cpus share a hardware
queue. And of course, it's the 2nd cpu that shares a hardware that
attempted to free it a second time and hit the oops.
Fix by reworking the cpu to hardware queue mapping such that:
Assignment of hardware queues to cpus occur in two passes:
first pass: is first time assignment of a hardware queue to a cpu.
This will set the LPFC_CPU_FIRST_IRQ flag for the cpu.
second pass: for cpus that did not get a hardware queue they will
be assigned one from a primary cpu (one set in first pass).
Deletion of hardware queues is driven by cpu itteration, and queues
will only be deleted if the LPFC_CPU_FIRST_IRQ flag is set.
Also contains a few small cleanup fixes and a little better logging.
Signed-off-by: Dick Kennedy <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions