diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-08 13:12:46 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-05-08 13:12:46 -0400 |
commit | d1cd7c85f9e29740fddec6f25d8bf061937bf58d (patch) | |
tree | 6d1f8e555d3a416442856724b57dc414eac5d5a4 /include/scsi/libsas.h | |
parent | b3a5e648f5917ea508ecab9a629028b186d38eae (diff) | |
parent | d4023db71108375e4194e92730ba0d32d7f07813 (diff) |
Merge tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi
Pull SCSI updates from James Bottomley:
"This is mostly update of the usual drivers: qla2xxx, qedf, smartpqi,
hpsa, lpfc, ufs, mpt3sas, ibmvfc and hisi_sas. Plus number of minor
changes, spelling fixes and other trivia"
* tag 'scsi-misc' of git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi: (298 commits)
scsi: qla2xxx: Avoid that lockdep complains about unsafe locking in tcm_qla2xxx_close_session()
scsi: qla2xxx: Avoid that qlt_send_resp_ctio() corrupts memory
scsi: qla2xxx: Fix hardirq-unsafe locking
scsi: qla2xxx: Complain loudly about reference count underflow
scsi: qla2xxx: Use __le64 instead of uint32_t[2] for sending DMA addresses to firmware
scsi: qla2xxx: Introduce the dsd32 and dsd64 data structures
scsi: qla2xxx: Check the size of firmware data structures at compile time
scsi: qla2xxx: Pass little-endian values to the firmware
scsi: qla2xxx: Fix race conditions in the code for aborting SCSI commands
scsi: qla2xxx: Use an on-stack completion in qla24xx_control_vp()
scsi: qla2xxx: Make qla24xx_async_abort_cmd() static
scsi: qla2xxx: Remove unnecessary locking from the target code
scsi: qla2xxx: Remove qla_tgt_cmd.released
scsi: qla2xxx: Complain if a command is released that is owned by the firmware
scsi: qla2xxx: target: Fix offline port handling and host reset handling
scsi: qla2xxx: Fix abort handling in tcm_qla2xxx_write_pending()
scsi: qla2xxx: Fix error handling in qlt_alloc_qfull_cmd()
scsi: qla2xxx: Simplify qlt_send_term_imm_notif()
scsi: qla2xxx: Fix use-after-free issues in qla2xxx_qpair_sp_free_dma()
scsi: qla2xxx: Fix a qla24xx_enable_msix() error path
...
Diffstat (limited to 'include/scsi/libsas.h')
-rw-r--r-- | include/scsi/libsas.h | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/include/scsi/libsas.h b/include/scsi/libsas.h index 56b2dba7d911..b08febec7895 100644 --- a/include/scsi/libsas.h +++ b/include/scsi/libsas.h | |||
@@ -224,6 +224,13 @@ struct sas_work { | |||
224 | struct work_struct work; | 224 | struct work_struct work; |
225 | }; | 225 | }; |
226 | 226 | ||
227 | /* Lots of code duplicates this in the SCSI tree, which can be factored out */ | ||
228 | static inline bool sas_dev_type_is_expander(enum sas_device_type type) | ||
229 | { | ||
230 | return type == SAS_EDGE_EXPANDER_DEVICE || | ||
231 | type == SAS_FANOUT_EXPANDER_DEVICE; | ||
232 | } | ||
233 | |||
227 | static inline void INIT_SAS_WORK(struct sas_work *sw, void (*fn)(struct work_struct *)) | 234 | static inline void INIT_SAS_WORK(struct sas_work *sw, void (*fn)(struct work_struct *)) |
228 | { | 235 | { |
229 | INIT_WORK(&sw->work, fn); | 236 | INIT_WORK(&sw->work, fn); |
@@ -245,9 +252,9 @@ static inline struct sas_discovery_event *to_sas_discovery_event(struct work_str | |||
245 | struct sas_discovery { | 252 | struct sas_discovery { |
246 | struct sas_discovery_event disc_work[DISC_NUM_EVENTS]; | 253 | struct sas_discovery_event disc_work[DISC_NUM_EVENTS]; |
247 | unsigned long pending; | 254 | unsigned long pending; |
248 | u8 fanout_sas_addr[8]; | 255 | u8 fanout_sas_addr[SAS_ADDR_SIZE]; |
249 | u8 eeds_a[8]; | 256 | u8 eeds_a[SAS_ADDR_SIZE]; |
250 | u8 eeds_b[8]; | 257 | u8 eeds_b[SAS_ADDR_SIZE]; |
251 | int max_level; | 258 | int max_level; |
252 | }; | 259 | }; |
253 | 260 | ||