diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-31 18:31:23 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-31 18:31:23 -0500 |
commit | 4e13c5d0212f25d69a97606b9d5a85edb52a7737 (patch) | |
tree | 002f59b9151f42a6388656762f0e7963d08b89ef /drivers/target/target_core_file.h | |
parent | deb2a1d29bf0168ff2575e714e5c1f156be663fb (diff) | |
parent | 5259a06ef97068b710f45d092a587e8d740f750f (diff) |
Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending
Pull SCSI target updates from Nicholas Bellinger:
"The highlights this round include:
- add support for SCSI Referrals (Hannes)
- add support for T10 DIF into target core (nab + mkp)
- add support for T10 DIF emulation in FILEIO + RAMDISK backends (Sagi + nab)
- add support for T10 DIF -> bio_integrity passthrough in IBLOCK backend (nab)
- prep changes to iser-target for >= v3.15 T10 DIF support (Sagi)
- add support for qla2xxx N_Port ID Virtualization - NPIV (Saurav + Quinn)
- allow percpu_ida_alloc() to receive task state bitmask (Kent)
- fix >= v3.12 iscsi-target session reset hung task regression (nab)
- fix >= v3.13 percpu_ref se_lun->lun_ref_active race (nab)
- fix a long-standing network portal creation race (Andy)"
* 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending: (51 commits)
target: Fix percpu_ref_put race in transport_lun_remove_cmd
target/iscsi: Fix network portal creation race
target: Report bad sector in sense data for DIF errors
iscsi-target: Convert gfp_t parameter to task state bitmask
iscsi-target: Fix connection reset hang with percpu_ida_alloc
percpu_ida: Make percpu_ida_alloc + callers accept task state bitmask
iscsi-target: Pre-allocate more tags to avoid ack starvation
qla2xxx: Configure NPIV fc_vport via tcm_qla2xxx_npiv_make_lport
qla2xxx: Enhancements to enable NPIV support for QLOGIC ISPs with TCM/LIO.
qla2xxx: Fix scsi_host leak on qlt_lport_register callback failure
IB/isert: pass scatterlist instead of cmd to fast_reg_mr routine
IB/isert: Move fastreg descriptor creation to a function
IB/isert: Avoid frwr notation, user fastreg
IB/isert: seperate connection protection domains and dma MRs
tcm_loop: Enable DIF/DIX modes in SCSI host LLD
target/rd: Add DIF protection into rd_execute_rw
target/rd: Add support for protection SGL setup + release
target/rd: Refactor rd_build_device_space + rd_release_device_space
target/file: Add DIF protection support to fd_execute_rw
target/file: Add DIF protection init/format support
...
Diffstat (limited to 'drivers/target/target_core_file.h')
-rw-r--r-- | drivers/target/target_core_file.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/target/target_core_file.h b/drivers/target/target_core_file.h index d7772c167685..182cbb295039 100644 --- a/drivers/target/target_core_file.h +++ b/drivers/target/target_core_file.h | |||
@@ -4,6 +4,7 @@ | |||
4 | #define FD_VERSION "4.0" | 4 | #define FD_VERSION "4.0" |
5 | 5 | ||
6 | #define FD_MAX_DEV_NAME 256 | 6 | #define FD_MAX_DEV_NAME 256 |
7 | #define FD_MAX_DEV_PROT_NAME FD_MAX_DEV_NAME + 16 | ||
7 | #define FD_DEVICE_QUEUE_DEPTH 32 | 8 | #define FD_DEVICE_QUEUE_DEPTH 32 |
8 | #define FD_MAX_DEVICE_QUEUE_DEPTH 128 | 9 | #define FD_MAX_DEVICE_QUEUE_DEPTH 128 |
9 | #define FD_BLOCKSIZE 512 | 10 | #define FD_BLOCKSIZE 512 |
@@ -18,6 +19,13 @@ | |||
18 | #define FBDF_HAS_PATH 0x01 | 19 | #define FBDF_HAS_PATH 0x01 |
19 | #define FBDF_HAS_SIZE 0x02 | 20 | #define FBDF_HAS_SIZE 0x02 |
20 | #define FDBD_HAS_BUFFERED_IO_WCE 0x04 | 21 | #define FDBD_HAS_BUFFERED_IO_WCE 0x04 |
22 | #define FDBD_FORMAT_UNIT_SIZE 2048 | ||
23 | |||
24 | struct fd_prot { | ||
25 | unsigned char *prot_buf; | ||
26 | struct scatterlist *prot_sg; | ||
27 | u32 prot_sg_nents; | ||
28 | }; | ||
21 | 29 | ||
22 | struct fd_dev { | 30 | struct fd_dev { |
23 | struct se_device dev; | 31 | struct se_device dev; |
@@ -32,6 +40,7 @@ struct fd_dev { | |||
32 | u32 fd_block_size; | 40 | u32 fd_block_size; |
33 | unsigned long long fd_dev_size; | 41 | unsigned long long fd_dev_size; |
34 | struct file *fd_file; | 42 | struct file *fd_file; |
43 | struct file *fd_prot_file; | ||
35 | /* FILEIO HBA device is connected to */ | 44 | /* FILEIO HBA device is connected to */ |
36 | struct fd_host *fd_host; | 45 | struct fd_host *fd_host; |
37 | } ____cacheline_aligned; | 46 | } ____cacheline_aligned; |