isert: Stop timer as soon as we so that in busy system we don't rely on userspace

Signed-off-by: Yan Burman <yanb@mellanox.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@5900 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Yan Burman
2014-11-30 08:17:24 +00:00
parent 03548dbc24
commit 5c1d9a4501
+2 -1
View File
@@ -86,8 +86,8 @@ static struct isert_conn_dev *get_available_dev(struct isert_listener_dev *dev,
static void isert_del_timer(struct isert_conn_dev *dev)
{
if (dev->timer_active) {
del_timer_sync(&dev->tmo_timer);
dev->timer_active = 0;
del_timer_sync(&dev->tmo_timer);
}
}
@@ -234,6 +234,7 @@ int isert_conn_alloc(struct iscsi_session *session,
goto cleanup_conn;
conn->rd_state = 1;
isert_del_timer(dev);
isert_dev_release(dev);
isert_set_priv(conn, NULL);