mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-19 11:41:26 +00:00
qla2x00t: Fix delay calculation (merge r4311 from trunk)
git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4432 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -780,7 +780,7 @@ static void q2t_schedule_sess_for_deletion(struct q2t_sess *sess)
|
||||
|
||||
if (schedule)
|
||||
schedule_delayed_work(&tgt->sess_del_work,
|
||||
jiffies - sess->expires);
|
||||
sess->expires - jiffies);
|
||||
|
||||
out:
|
||||
TRACE_EXIT();
|
||||
@@ -1075,7 +1075,7 @@ static void q2t_del_sess_work_fn(struct delayed_work *work)
|
||||
}
|
||||
} else {
|
||||
schedule_delayed_work(&tgt->sess_del_work,
|
||||
jiffies - sess->expires);
|
||||
sess->expires - jiffies);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user