]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0edf2134eba8f828cf5e658c72352469d2020841
tree71e23ef67207d3558904bb6a4eb04984a0614059
parentdd6c785ed20b8d20f09b72346d137a800267f9f7
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 ec28377 - 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