[SCSI] iscsi bugfixes: reduce memory allocations
authorMike Christie <michaelc@cs.wisc.edu>
Mon, 24 Jul 2006 20:47:39 +0000 (15:47 -0500)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Fri, 28 Jul 2006 16:49:34 +0000 (11:49 -0500)
commitc8dc1e523b0f1e6dd71cdabd8c7d7587c6dc27f9
tree466efa148c152f4330c92f02f81bc72e8f395114
parent9aaa2b4621280b6de1ecfb6dd7cd5cbe59fd1264
[SCSI] iscsi bugfixes: reduce memory allocations

We currently try to allocate a max_recv_data_segment_length
which can be very large (default is 64K), and common uses
are up to 1MB. It is very very difficult to allocte this
much contiguous memory and it turns out we never even use it.
We really only need a couple of pages, so this patch has us
allocates just what we know what we need today.

Later if vendors start adding vendor specific data and
we need to handle large buffers we can do this, but for
the last 4 years we have not seen anyone do this or request
it.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.h
drivers/scsi/libiscsi.c
include/scsi/libiscsi.h