Skip to content

Commit a2c2df8

Browse files
committed
Merge tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI fixes from James Bottomley: "This is a couple of minor fixes, one for a preempt warning in the mpt2sas driver and one is a config failure with the new sd async domain." * tag 'scsi-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: [SCSI] Fix sd_probe_domain config problem [SCSI] mpt2sas: Fix unsafe using smp_processor_id() in preemptible
2 parents 873b779 + ea80dad commit a2c2df8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

drivers/scsi/mpt2sas/mpt2sas_base.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1792,7 +1792,7 @@ static inline void _base_writeq(__u64 b, volatile void __iomem *addr,
17921792
static inline u8
17931793
_base_get_msix_index(struct MPT2SAS_ADAPTER *ioc)
17941794
{
1795-
return ioc->cpu_msix_table[smp_processor_id()];
1795+
return ioc->cpu_msix_table[raw_smp_processor_id()];
17961796
}
17971797

17981798
/**

drivers/scsi/scsi.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,9 @@ unsigned int scsi_logging_level;
9090
EXPORT_SYMBOL(scsi_logging_level);
9191
#endif
9292

93-
#if IS_ENABLED(CONFIG_PM) || IS_ENABLED(CONFIG_BLK_DEV_SD)
94-
/* sd and scsi_pm need to coordinate flushing async actions */
93+
/* sd, scsi core and power management need to coordinate flushing async actions */
9594
LIST_HEAD(scsi_sd_probe_domain);
9695
EXPORT_SYMBOL(scsi_sd_probe_domain);
97-
#endif
9896

9997
/* NB: These are exposed through /proc/scsi/scsi and form part of the ABI.
10098
* You may not alter any existing entry (although adding new ones is

0 commit comments

Comments
 (0)