]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
target/sbc: Add sbc_dif_read_strip software emulation
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 2 Apr 2014 21:34:11 +0000 (14:34 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:57 +0000 (01:48 -0700)
commit395ccb2531021974d309f26e5fb08a8240ac5f84
tree29209107f67d9d16e9e65c7174bbe74978805e85
parenta84bf9eedb550e38376008f32fcf0610867d3067
target/sbc: Add sbc_dif_read_strip software emulation

Split up __sbc_dif_verify_read() so that VERIFY READ emulation can
perform target-core specific READ_STRIP, seperate from the existing
FILEIO/RAMDISK backend emulation code.

Also add sbc_dif_read_strip() in order to determine number of sectors
using cmd->prot_length, and skip the extra sbc_dif_copy_prot().

Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_sbc.c
include/target/target_core_backend.h