]> Pileus Git - ~andy/linux/commitdiff
iscsi-target: Bump default TCP listen backlog to 256
authorNicholas Bellinger <nab@linux-iscsi.org>
Mon, 9 Sep 2013 23:24:46 +0000 (16:24 -0700)
committerNicholas Bellinger <nab@linux-iscsi.org>
Wed, 11 Sep 2013 03:23:34 +0000 (20:23 -0700)
This patch bumps the default TCP listen backlog within iscsit_setup_np()
from 5 to 256, in order to reduce the overall latency caused by a small
backlog with 100's of simultaneous login attempts directed to the same
single network portal.

Also add a ISCSIT_TCP_BACKLOG macro in iscsi_target_core.h.

Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/iscsi/iscsi_target_core.h
drivers/target/iscsi/iscsi_target_login.c

index f6ff257e2b666392de9111e36ebc331e7b8e3eaf..1e84f6fc1cc8e6e8bb3af6fdd4cdfe23a005d86e 100644 (file)
@@ -19,6 +19,7 @@
 #define WHITE_SPACE                    " \t\v\f\n\r"
 #define ISCSIT_MIN_TAGS                        16
 #define ISCSIT_EXTRA_TAGS              8
+#define ISCSIT_TCP_BACKLOG             256
 
 /* struct iscsi_node_attrib sanity values */
 #define NA_DATAOUT_TIMEOUT             3
index d903c0c702d6c2e44ffa29efb1978196df9e2f1a..5f9248ddade98a1d1dc3750725c09f29b8d48efc 100644 (file)
@@ -873,7 +873,7 @@ int iscsit_setup_np(
        struct __kernel_sockaddr_storage *sockaddr)
 {
        struct socket *sock = NULL;
-       int backlog = 5, ret, opt = 0, len;
+       int backlog = ISCSIT_TCP_BACKLOG, ret, opt = 0, len;
 
        switch (np->np_network_transport) {
        case ISCSI_TCP: