diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-11 14:12:33 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-10-11 14:12:33 -0400 |
commit | 69585dd69e663a40729492c7b52eb82477a2027a (patch) | |
tree | 5c179ca88b70856a7f9b56e10151ffa5480f0284 /drivers/scsi/sd.h | |
parent | bd381934bf13ccb1af2813ae26c6fe00ec85d254 (diff) | |
parent | c7922a911c42c5a8bdee6cc75eb6bd66937d4217 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6
* git://git.kernel.org/pub/scm/linux/kernel/git/jejb/scsi-rc-fixes-2.6: (34 commits)
[SCSI] qla2xxx: Fix NULL ptr deref bug in fail path during queue create
[SCSI] st: fix possible memory use after free after MTSETBLK ioctl
[SCSI] be2iscsi: Moving to pci_pools v3
[SCSI] libiscsi: iscsi_session_setup to allow for private space
[SCSI] be2iscsi: add 10Gbps iSCSI - BladeEngine 2 driver
[SCSI] zfcp: Fix hang when offlining device with offline chpid
[SCSI] zfcp: Fix lockdep warning when offlining device with offline chpid
[SCSI] zfcp: Fix oops during shutdown of offline device
[SCSI] zfcp: Fix initial device and cfdc for delayed adapter allocation
[SCSI] zfcp: correctly initialize unchained requests
[SCSI] mpt2sas: Bump version 02.100.03.00
[SCSI] mpt2sas: Support dev remove when phy status is MPI2_EVENT_SAS_TOPO_PHYSTATUS_VACANT
[SCSI] mpt2sas: Timeout occurred within the HANDSHAKE logic while waiting on firmware to ACK.
[SCSI] mpt2sas: Call init_completion on a per request basis.
[SCSI] mpt2sas: Target Reset will be issued from Interrupt context.
[SCSI] mpt2sas: Added SCSIIO, Internal and high priority memory pools to support multiple TM
[SCSI] mpt2sas: Copyright change to 2009.
[SCSI] mpt2sas: Added mpi2_history.txt for MPI2 headers.
[SCSI] mpt2sas: Update driver to MPI2 REV K headers.
[SCSI] bfa: Brocade BFA FC SCSI driver
...
Diffstat (limited to 'drivers/scsi/sd.h')
-rw-r--r-- | drivers/scsi/sd.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/drivers/scsi/sd.h b/drivers/scsi/sd.h index 8474b5bad3fe..e374804d26fb 100644 --- a/drivers/scsi/sd.h +++ b/drivers/scsi/sd.h | |||
@@ -37,6 +37,11 @@ | |||
37 | */ | 37 | */ |
38 | #define SD_LAST_BUGGY_SECTORS 8 | 38 | #define SD_LAST_BUGGY_SECTORS 8 |
39 | 39 | ||
40 | enum { | ||
41 | SD_EXT_CDB_SIZE = 32, /* Extended CDB size */ | ||
42 | SD_MEMPOOL_SIZE = 2, /* CDB pool size */ | ||
43 | }; | ||
44 | |||
40 | struct scsi_disk { | 45 | struct scsi_disk { |
41 | struct scsi_driver *driver; /* always &sd_template */ | 46 | struct scsi_driver *driver; /* always &sd_template */ |
42 | struct scsi_device *device; | 47 | struct scsi_device *device; |
@@ -101,16 +106,12 @@ struct sd_dif_tuple { | |||
101 | 106 | ||
102 | #ifdef CONFIG_BLK_DEV_INTEGRITY | 107 | #ifdef CONFIG_BLK_DEV_INTEGRITY |
103 | 108 | ||
104 | extern void sd_dif_op(struct scsi_cmnd *, unsigned int, unsigned int, unsigned int); | ||
105 | extern void sd_dif_config_host(struct scsi_disk *); | 109 | extern void sd_dif_config_host(struct scsi_disk *); |
106 | extern int sd_dif_prepare(struct request *rq, sector_t, unsigned int); | 110 | extern int sd_dif_prepare(struct request *rq, sector_t, unsigned int); |
107 | extern void sd_dif_complete(struct scsi_cmnd *, unsigned int); | 111 | extern void sd_dif_complete(struct scsi_cmnd *, unsigned int); |
108 | 112 | ||
109 | #else /* CONFIG_BLK_DEV_INTEGRITY */ | 113 | #else /* CONFIG_BLK_DEV_INTEGRITY */ |
110 | 114 | ||
111 | static inline void sd_dif_op(struct scsi_cmnd *cmd, unsigned int a, unsigned int b, unsigned int c) | ||
112 | { | ||
113 | } | ||
114 | static inline void sd_dif_config_host(struct scsi_disk *disk) | 115 | static inline void sd_dif_config_host(struct scsi_disk *disk) |
115 | { | 116 | { |
116 | } | 117 | } |