target/file: Remove fd_prot bounce buffer
authorSagi Grimberg <sagig@mellanox.com>
Sun, 19 Apr 2015 17:27:20 +0000 (20:27 +0300)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sun, 31 May 2015 05:41:42 +0000 (22:41 -0700)
commit8287fa5fb43c3fa05748560b8e13b91c4e88f586
tree71e23ef67207d3558904bb6a4eb04984a0614059
parentf75b6fae1a1d0a79dcbb9cbaed1d06bf3fe57a3c
target/file: Remove fd_prot bounce buffer

The reason this bounce buffer exists is to allow code
reuse between rd_mcp and fileio in DIF mode. But the fact is,
that this bounce is really not needed at all, we can simply call
sbc_dif_verify on cmd->t_prot_sg and use it for file IO.

This also removes fd_do_prot_rw as fd_do_rw was generalised
to receive file pointer, block size (8 bytes for DIF data) and
total data length.

(Fix apply breakage from commit c836777 - nab)

Tested-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Sagi Grimberg <sagig@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_file.c
drivers/target/target_core_file.h