the original idea of writing to the socket before reading was to put data on the wire as early as possible and avoid potential latency increase due to long taking callbacks invoked in iscsi_read_from_socket. Benchmarking with libiscsi userland tools have shown that changing the order increases throughput by about 5%. The reason is that during POLLIN we might receive an updated MaxCmdSN which might us allow to send new data out during POLLOUT. For Qemu the change doesn't matter since POLLIN and POLLOUT are processed independently. Signed-off-by: Peter Lieven <pl@kamp.de>
26 KiB
26 KiB