Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107418728
D34222.id102781.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D34222.id102781.diff
View Options
Index: sys/dev/iscsi/icl_soft_proxy.c
===================================================================
--- sys/dev/iscsi/icl_soft_proxy.c
+++ sys/dev/iscsi/icl_soft_proxy.c
@@ -173,6 +173,7 @@
icl_listen_free(struct icl_listen *il)
{
struct icl_listen_sock *ils;
+ sbintime_t sbt, pr;
sx_xlock(&il->il_lock);
while (!TAILQ_EMPTY(&il->il_sockets)) {
@@ -184,7 +185,9 @@
ils->ils_socket->so_error = ENOTCONN;
SOLISTEN_UNLOCK(ils->ils_socket);
wakeup(&ils->ils_socket->so_timeo);
- pause("icl_unlisten", 1 * hz);
+ sbt = mstosbt(995);
+ pr = mstosbt(10);
+ pause_sbt("icl_unlisten", sbt, pr, 0);
sx_xlock(&il->il_lock);
}
Index: sys/dev/iscsi/iscsi.c
===================================================================
--- sys/dev/iscsi/iscsi.c
+++ sys/dev/iscsi/iscsi.c
@@ -546,6 +546,7 @@
struct iscsi_bhs_nop_out *bhsno;
struct iscsi_session *is;
bool reconnect_needed = false;
+ sbintime_t sbt, pr;
is = context;
@@ -555,7 +556,9 @@
return;
}
- callout_schedule(&is->is_callout, 1 * hz);
+ sbt = mstosbt(995);
+ pr = mstosbt(10);
+ callout_schedule_sbt(&is->is_callout, sbt, pr, 0);
if (is->is_conf.isc_enable == 0)
goto out;
@@ -1835,6 +1838,7 @@
struct iscsi_session *is;
const struct iscsi_session *is2;
int error;
+ sbintime_t sbt, pr;
iscsi_sanitize_session_conf(&isa->isa_conf);
if (iscsi_valid_session_conf(&isa->isa_conf) == false)
@@ -1912,7 +1916,9 @@
return (error);
}
- callout_reset(&is->is_callout, 1 * hz, iscsi_callout, is);
+ sbt = mstosbt(995);
+ pr = mstosbt(10);
+ callout_reset_sbt(&is->is_callout, sbt, pr, iscsi_callout, is, 0);
TAILQ_INSERT_TAIL(&sc->sc_sessions, is, is_next);
ISCSI_SESSION_LOCK(is);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jan 14, 9:31 PM (8 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15801321
Default Alt Text
D34222.id102781.diff (1 KB)
Attached To
Mode
D34222: iscsi: Use calloutng instead of ticks in iscsi initiator
Attached
Detach File
Event Timeline
Log In to Comment