]> git.ipfire.org Git - ipfire-2.x.git/blob - src/patches/suse-2.6.27.39/patches.fixes/iscsi_tcp-Use-1-second-send-timeout
Imported linux-2.6.27.39 suse/xen patches.
[ipfire-2.x.git] / src / patches / suse-2.6.27.39 / patches.fixes / iscsi_tcp-Use-1-second-send-timeout
1 From: Hannes Reinecke <hare@suse.de>
2 Date: Tue, 18 Aug 2009 11:35:03 +0200
3 Subject: iscsi_tcp: Use 1 second send timeout
4 References: bnc#472432
5
6 We're getting a far better response time
7 when using a 1 seconds send timeout; otherwise
8 we might stall for too long and trigger
9 ping timeouts.
10
11 Signed-off-by: Hannes Reinecke <hare@suse.de>
12 ---
13 drivers/scsi/iscsi_tcp.c | 2 +-
14 1 files changed, 1 insertions(+), 1 deletions(-)
15
16 diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
17 index 19fae4d..a648919 100644
18 --- a/drivers/scsi/iscsi_tcp.c
19 +++ b/drivers/scsi/iscsi_tcp.c
20 @@ -1712,7 +1712,7 @@ iscsi_tcp_conn_bind(struct iscsi_cls_session *cls_session,
21 /* setup Socket parameters */
22 sk = sock->sk;
23 sk->sk_reuse = 1;
24 - sk->sk_sndtimeo = 15 * HZ; /* FIXME: make it configurable */
25 + sk->sk_sndtimeo = 1 * HZ; /* FIXME: make it configurable */
26 sk->sk_allocation = GFP_ATOMIC;
27
28 iscsi_conn_set_callbacks(conn);
29 --
30 1.6.0.2
31