diff options
Diffstat (limited to 'drivers/scsi/libiscsi.c')
-rw-r--r-- | drivers/scsi/libiscsi.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/drivers/scsi/libiscsi.c b/drivers/scsi/libiscsi.c index c8c00e173414..b2a1ec8725b8 100644 --- a/drivers/scsi/libiscsi.c +++ b/drivers/scsi/libiscsi.c | |||
@@ -1384,14 +1384,11 @@ static void iscsi_check_transport_timeouts(unsigned long data) | |||
1384 | iscsi_send_nopout(conn, NULL); | 1384 | iscsi_send_nopout(conn, NULL); |
1385 | } | 1385 | } |
1386 | next_timeout = last_recv + timeout + (conn->ping_timeout * HZ); | 1386 | next_timeout = last_recv + timeout + (conn->ping_timeout * HZ); |
1387 | } else { | 1387 | } else |
1388 | next_timeout = last_recv + timeout; | 1388 | next_timeout = last_recv + timeout; |
1389 | } | ||
1390 | 1389 | ||
1391 | if (next_timeout) { | 1390 | debug_scsi("Setting next tmo %lu\n", next_timeout); |
1392 | debug_scsi("Setting next tmo %lu\n", next_timeout); | 1391 | mod_timer(&conn->transport_timer, next_timeout); |
1393 | mod_timer(&conn->transport_timer, next_timeout); | ||
1394 | } | ||
1395 | done: | 1392 | done: |
1396 | spin_unlock(&session->lock); | 1393 | spin_unlock(&session->lock); |
1397 | } | 1394 | } |