mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 14:42:24 +00:00
11f0e89710
The get_unit_name() function crafts a string based on the device name and the device unit number. It then stores this in a static variable. This has concurrency issues as can be seen with this log: hfi1 0000:02:00.0: hfi1_1: read_idle_message: read idle message 0x203 hfi1 0000:01:00.0: hfi1_1: read_idle_message: read idle message 0x203 The PCI device ID (0000:02:00.0 vs. 0000:01:00.0) is correct for the message, but the device string hfi1_1 is incorrect (it should be hfi1_0 for the second log message). Remove get_unit_name() function. Instead, use the rvt accessor rvt_get_ibdev_name() to get the IB name string. Clean up any hfi1_early_xx calls that can now use the new path. QIB has the same (qib_get_unit_name()) issue. Updating as necessary. Remove qib_get_unit_name() function. Update log message that has redundant device name. Reviewed-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com> Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
qib_6120_regs.h | ||
qib_7220_regs.h | ||
qib_7220.h | ||
qib_7322_regs.h | ||
qib_common.h | ||
qib_debugfs.c | ||
qib_debugfs.h | ||
qib_diag.c | ||
qib_driver.c | ||
qib_eeprom.c | ||
qib_file_ops.c | ||
qib_fs.c | ||
qib_iba6120.c | ||
qib_iba7220.c | ||
qib_iba7322.c | ||
qib_init.c | ||
qib_intr.c | ||
qib_keys.c | ||
qib_mad.c | ||
qib_mad.h | ||
qib_pcie.c | ||
qib_pio_copy.c | ||
qib_qp.c | ||
qib_qsfp.c | ||
qib_qsfp.h | ||
qib_rc.c | ||
qib_ruc.c | ||
qib_sd7220.c | ||
qib_sdma.c | ||
qib_sysfs.c | ||
qib_twsi.c | ||
qib_tx.c | ||
qib_uc.c | ||
qib_ud.c | ||
qib_user_pages.c | ||
qib_user_sdma.c | ||
qib_user_sdma.h | ||
qib_verbs.c | ||
qib_verbs.h | ||
qib_wc_ppc64.c | ||
qib_wc_x86_64.c | ||
qib.h |