diff options
Diffstat (limited to 'include/scsi')
| -rw-r--r-- | include/scsi/fc/fc_fcp.h | 2 | ||||
| -rw-r--r-- | include/scsi/iscsi_if.h | 2 | ||||
| -rw-r--r-- | include/scsi/libfc.h | 8 | ||||
| -rw-r--r-- | include/scsi/libiscsi_tcp.h | 3 | ||||
| -rw-r--r-- | include/scsi/osd_initiator.h | 2 | ||||
| -rw-r--r-- | include/scsi/scsi_device.h | 2 | ||||
| -rw-r--r-- | include/scsi/scsi_host.h | 2 | ||||
| -rw-r--r-- | include/scsi/scsi_transport_fc.h | 6 |
8 files changed, 14 insertions, 13 deletions
diff --git a/include/scsi/fc/fc_fcp.h b/include/scsi/fc/fc_fcp.h index 8a143ca79878..652dec230514 100644 --- a/include/scsi/fc/fc_fcp.h +++ b/include/scsi/fc/fc_fcp.h | |||
| @@ -75,7 +75,7 @@ struct fcp_cmnd32 { | |||
| 75 | #define FCP_PTA_SIMPLE 0 /* simple task attribute */ | 75 | #define FCP_PTA_SIMPLE 0 /* simple task attribute */ |
| 76 | #define FCP_PTA_HEADQ 1 /* head of queue task attribute */ | 76 | #define FCP_PTA_HEADQ 1 /* head of queue task attribute */ |
| 77 | #define FCP_PTA_ORDERED 2 /* ordered task attribute */ | 77 | #define FCP_PTA_ORDERED 2 /* ordered task attribute */ |
| 78 | #define FCP_PTA_ACA 4 /* auto. contigent allegiance */ | 78 | #define FCP_PTA_ACA 4 /* auto. contingent allegiance */ |
| 79 | #define FCP_PTA_MASK 7 /* mask for task attribute field */ | 79 | #define FCP_PTA_MASK 7 /* mask for task attribute field */ |
| 80 | #define FCP_PRI_SHIFT 3 /* priority field starts in bit 3 */ | 80 | #define FCP_PRI_SHIFT 3 /* priority field starts in bit 3 */ |
| 81 | #define FCP_PRI_RESVD_MASK 0x80 /* reserved bits in priority field */ | 81 | #define FCP_PRI_RESVD_MASK 0x80 /* reserved bits in priority field */ |
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index c3e1cbcc2ad2..ddb04568a509 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h | |||
| @@ -292,7 +292,7 @@ enum iscsi_param { | |||
| 292 | ISCSI_PARAM_PERSISTENT_PORT, | 292 | ISCSI_PARAM_PERSISTENT_PORT, |
| 293 | ISCSI_PARAM_SESS_RECOVERY_TMO, | 293 | ISCSI_PARAM_SESS_RECOVERY_TMO, |
| 294 | 294 | ||
| 295 | /* pased in through bind conn using transport_fd */ | 295 | /* passed in through bind conn using transport_fd */ |
| 296 | ISCSI_PARAM_CONN_PORT, | 296 | ISCSI_PARAM_CONN_PORT, |
| 297 | ISCSI_PARAM_CONN_ADDRESS, | 297 | ISCSI_PARAM_CONN_ADDRESS, |
| 298 | 298 | ||
diff --git a/include/scsi/libfc.h b/include/scsi/libfc.h index 24193c1b0da0..a3cbda4ddb5c 100644 --- a/include/scsi/libfc.h +++ b/include/scsi/libfc.h | |||
| @@ -260,7 +260,7 @@ struct fcoe_dev_stats { | |||
| 260 | /** | 260 | /** |
| 261 | * struct fc_seq_els_data - ELS data used for passing ELS specific responses | 261 | * struct fc_seq_els_data - ELS data used for passing ELS specific responses |
| 262 | * @reason: The reason for rejection | 262 | * @reason: The reason for rejection |
| 263 | * @explan: The explaination of the rejection | 263 | * @explan: The explanation of the rejection |
| 264 | * | 264 | * |
| 265 | * Mainly used by the exchange manager layer. | 265 | * Mainly used by the exchange manager layer. |
| 266 | */ | 266 | */ |
| @@ -525,7 +525,7 @@ struct libfc_function_template { | |||
| 525 | struct fc_frame *); | 525 | struct fc_frame *); |
| 526 | 526 | ||
| 527 | /* | 527 | /* |
| 528 | * Send an ELS response using infomation from the received frame. | 528 | * Send an ELS response using information from the received frame. |
| 529 | * | 529 | * |
| 530 | * STATUS: OPTIONAL | 530 | * STATUS: OPTIONAL |
| 531 | */ | 531 | */ |
| @@ -663,7 +663,7 @@ struct libfc_function_template { | |||
| 663 | int (*rport_logoff)(struct fc_rport_priv *); | 663 | int (*rport_logoff)(struct fc_rport_priv *); |
| 664 | 664 | ||
| 665 | /* | 665 | /* |
| 666 | * Recieve a request from a remote port. | 666 | * Receive a request from a remote port. |
| 667 | * | 667 | * |
| 668 | * STATUS: OPTIONAL | 668 | * STATUS: OPTIONAL |
| 669 | */ | 669 | */ |
| @@ -704,7 +704,7 @@ struct libfc_function_template { | |||
| 704 | void *)); | 704 | void *)); |
| 705 | 705 | ||
| 706 | /* | 706 | /* |
| 707 | * Cleanup the FCP layer, used durring link down and reset | 707 | * Cleanup the FCP layer, used during link down and reset |
| 708 | * | 708 | * |
| 709 | * STATUS: OPTIONAL | 709 | * STATUS: OPTIONAL |
| 710 | */ | 710 | */ |
diff --git a/include/scsi/libiscsi_tcp.h b/include/scsi/libiscsi_tcp.h index 741ae7ed4394..ac0cc1d925ef 100644 --- a/include/scsi/libiscsi_tcp.h +++ b/include/scsi/libiscsi_tcp.h | |||
| @@ -47,11 +47,12 @@ struct iscsi_segment { | |||
| 47 | struct scatterlist *sg; | 47 | struct scatterlist *sg; |
| 48 | void *sg_mapped; | 48 | void *sg_mapped; |
| 49 | unsigned int sg_offset; | 49 | unsigned int sg_offset; |
| 50 | bool atomic_mapped; | ||
| 50 | 51 | ||
| 51 | iscsi_segment_done_fn_t *done; | 52 | iscsi_segment_done_fn_t *done; |
| 52 | }; | 53 | }; |
| 53 | 54 | ||
| 54 | /* Socket connection recieve helper */ | 55 | /* Socket connection receive helper */ |
| 55 | struct iscsi_tcp_recv { | 56 | struct iscsi_tcp_recv { |
| 56 | struct iscsi_hdr *hdr; | 57 | struct iscsi_hdr *hdr; |
| 57 | struct iscsi_segment segment; | 58 | struct iscsi_segment segment; |
diff --git a/include/scsi/osd_initiator.h b/include/scsi/osd_initiator.h index 53a9e886612b..0a5079974fe9 100644 --- a/include/scsi/osd_initiator.h +++ b/include/scsi/osd_initiator.h | |||
| @@ -265,7 +265,7 @@ int osd_execute_request_async(struct osd_request *or, | |||
| 265 | * @osi - Recievs a more detailed error report information (optional). | 265 | * @osi - Recievs a more detailed error report information (optional). |
| 266 | * @silent - Do not print to dmsg (Even if enabled) | 266 | * @silent - Do not print to dmsg (Even if enabled) |
| 267 | * @bad_obj_list - Some commands act on multiple objects. Failed objects will | 267 | * @bad_obj_list - Some commands act on multiple objects. Failed objects will |
| 268 | * be recieved here (optional) | 268 | * be received here (optional) |
| 269 | * @max_obj - Size of @bad_obj_list. | 269 | * @max_obj - Size of @bad_obj_list. |
| 270 | * @bad_attr_list - List of failing attributes (optional) | 270 | * @bad_attr_list - List of failing attributes (optional) |
| 271 | * @max_attr - Size of @bad_attr_list. | 271 | * @max_attr - Size of @bad_attr_list. |
diff --git a/include/scsi/scsi_device.h b/include/scsi/scsi_device.h index f171c65dc5a8..2d3ec5094685 100644 --- a/include/scsi/scsi_device.h +++ b/include/scsi/scsi_device.h | |||
| @@ -462,7 +462,7 @@ static inline int scsi_device_qas(struct scsi_device *sdev) | |||
| 462 | } | 462 | } |
| 463 | static inline int scsi_device_enclosure(struct scsi_device *sdev) | 463 | static inline int scsi_device_enclosure(struct scsi_device *sdev) |
| 464 | { | 464 | { |
| 465 | return sdev->inquiry[6] & (1<<6); | 465 | return sdev->inquiry ? (sdev->inquiry[6] & (1<<6)) : 1; |
| 466 | } | 466 | } |
| 467 | 467 | ||
| 468 | static inline int scsi_device_protection(struct scsi_device *sdev) | 468 | static inline int scsi_device_protection(struct scsi_device *sdev) |
diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index e7e385842a38..f1f2644137b8 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h | |||
| @@ -46,7 +46,7 @@ struct blk_queue_tags; | |||
| 46 | enum { | 46 | enum { |
| 47 | SCSI_QDEPTH_DEFAULT, /* default requested change, e.g. from sysfs */ | 47 | SCSI_QDEPTH_DEFAULT, /* default requested change, e.g. from sysfs */ |
| 48 | SCSI_QDEPTH_QFULL, /* scsi-ml requested due to queue full */ | 48 | SCSI_QDEPTH_QFULL, /* scsi-ml requested due to queue full */ |
| 49 | SCSI_QDEPTH_RAMP_UP, /* scsi-ml requested due to threshhold event */ | 49 | SCSI_QDEPTH_RAMP_UP, /* scsi-ml requested due to threshold event */ |
| 50 | }; | 50 | }; |
| 51 | 51 | ||
| 52 | struct scsi_host_template { | 52 | struct scsi_host_template { |
diff --git a/include/scsi/scsi_transport_fc.h b/include/scsi/scsi_transport_fc.h index 59816fe31e68..2a65167a8f10 100644 --- a/include/scsi/scsi_transport_fc.h +++ b/include/scsi/scsi_transport_fc.h | |||
| @@ -192,9 +192,9 @@ struct fc_vport_identifiers { | |||
| 192 | * | 192 | * |
| 193 | * This structure exists for each FC port is a virtual FC port. Virtual | 193 | * This structure exists for each FC port is a virtual FC port. Virtual |
| 194 | * ports share the physical link with the Physical port. Each virtual | 194 | * ports share the physical link with the Physical port. Each virtual |
| 195 | * ports has a unique presense on the SAN, and may be instantiated via | 195 | * ports has a unique presence on the SAN, and may be instantiated via |
| 196 | * NPIV, Virtual Fabrics, or via additional ALPAs. As the vport is a | 196 | * NPIV, Virtual Fabrics, or via additional ALPAs. As the vport is a |
| 197 | * unique presense, each vport has it's own view of the fabric, | 197 | * unique presence, each vport has it's own view of the fabric, |
| 198 | * authentication privilege, and priorities. | 198 | * authentication privilege, and priorities. |
| 199 | * | 199 | * |
| 200 | * A virtual port may support 1 or more FC4 roles. Typically it is a | 200 | * A virtual port may support 1 or more FC4 roles. Typically it is a |
| @@ -370,7 +370,7 @@ struct fc_rport { /* aka fc_starget_attrs */ | |||
| 370 | /* | 370 | /* |
| 371 | * FC SCSI Target Attributes | 371 | * FC SCSI Target Attributes |
| 372 | * | 372 | * |
| 373 | * The SCSI Target is considered an extention of a remote port (as | 373 | * The SCSI Target is considered an extension of a remote port (as |
| 374 | * a remote port can be more than a SCSI Target). Within the scsi | 374 | * a remote port can be more than a SCSI Target). Within the scsi |
| 375 | * subsystem, we leave the Target as a separate entity. Doing so | 375 | * subsystem, we leave the Target as a separate entity. Doing so |
| 376 | * provides backward compatibility with prior FC transport api's, | 376 | * provides backward compatibility with prior FC transport api's, |
