Revert "Rewrite and simplify iscsi_iovector_readv_writev"

Since writing headers and payload in a single iov has never been
implementend and after thinking about it several times seems to
be very hairy I would like to revert this change since
the original implementation is in O(1) while the changed one
is in O(n). This results in a complexity of O(n^2) instead of
O(n) for the whole send operation.

This reverts commit 06eab264f6.
This commit is contained in:
Peter Lieven
2014-07-14 08:05:32 +02:00
parent 6285ba72b7
commit 59e4a07129
2 changed files with 58 additions and 52 deletions

View File

@@ -270,9 +270,8 @@ struct scsi_iovector {
struct scsi_iovec *iov;
int niov;
int nalloc;
size_t reserved_1;
int reserved_2;
size_t offset;
int consumed;
};
struct scsi_task {