target: Enable READ_STRIP emulation in target_complete_ok_work
authorNicholas Bellinger <[email protected]>
Wed, 2 Apr 2014 21:55:33 +0000 (14:55 -0700)
committerNicholas Bellinger <[email protected]>
Mon, 7 Apr 2014 08:48:58 +0000 (01:48 -0700)
commitbc0058695a74c0e9aef8bf9582a096ce4924f690
treec8ae45d655184a2eab52e8236cc6c491c3c3820d
parent395ccb2531021974d309f26e5fb08a8240ac5f84
target: Enable READ_STRIP emulation in target_complete_ok_work

This patch enables the use of READ_STRIP software emulation in
target_complete_ok_work() code for I/O READs.

This is useful when the fabric does not support READ_STRIP hardware
offload, but would still like to interact with backend device
that have T10 PI enabled.

v2 changes:
   - Move TARGET_PROT_DIN_STRIP check from target_check_read_strip()
     into target_complete_ok_work() (Sagi)

Cc: Martin K. Petersen <[email protected]>
Cc: Sagi Grimberg <[email protected]>
Cc: Or Gerlitz <[email protected]>
Cc: Quinn Tran <[email protected]>
Cc: Giridhar Malavali <[email protected]>
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/target/target_core_transport.c