diff options
author | Ilias Tsitsimpis <iliastsi@arrikto.com> | 2015-04-23 21:47:00 +0300 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2015-05-31 08:41:46 +0300 |
commit | f97ec7db1606875666366bfcba8476f8c917db96 (patch) | |
tree | f052599d412f804670c140a46c9ea52fa1e1baa8 /lib/crc7.c | |
parent | b32bd0a8ee6a19f9b70aa4fcb9bfc802b105ce05 (diff) | |
download | linux-f97ec7db1606875666366bfcba8476f8c917db96.tar.xz |
target/user: Refactor data area allocation code
Introduce alloc_and_scatter_data_area()/gather_and_free_data_area()
functions that allocate/deallocate space from the data area and copy
data to/from a given scatter-gather list. These functions are needed so
the next patch, introducing support for bidirectional commands in TCMU,
can use the same code path both for t_data_sg and for t_bidi_data_sg.
Signed-off-by: Ilias Tsitsimpis <iliastsi@arrikto.com>
Signed-off-by: Vangelis Koukis <vkoukis@arrikto.com>
Reviewed-by: Andy Grover <agrover@redhat.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'lib/crc7.c')
0 files changed, 0 insertions, 0 deletions