summaryrefslogtreecommitdiffstats
path: root/sys/dev/iscsi/icl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/iscsi/icl.c')
-rw-r--r--sys/dev/iscsi/icl.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys/dev/iscsi/icl.c b/sys/dev/iscsi/icl.c
index 3576b4f..e548fd4 100644
--- a/sys/dev/iscsi/icl.c
+++ b/sys/dev/iscsi/icl.c
@@ -971,7 +971,7 @@ icl_pdu_queue(struct icl_pdu *ip)
}
struct icl_conn *
-icl_conn_new(struct mtx *lock)
+icl_conn_new(const char *name, struct mtx *lock)
{
struct icl_conn *ic;
@@ -987,6 +987,7 @@ icl_conn_new(struct mtx *lock)
refcount_init(&ic->ic_outstanding_pdus, 0);
#endif
ic->ic_max_data_segment_length = ICL_MAX_DATA_SEGMENT_LENGTH;
+ ic->ic_name = name;
return (ic);
}
@@ -1062,14 +1063,16 @@ icl_conn_start(struct icl_conn *ic)
/*
* Start threads.
*/
- error = kthread_add(icl_send_thread, ic, NULL, NULL, 0, 0, "icltx");
+ error = kthread_add(icl_send_thread, ic, NULL, NULL, 0, 0, "%stx",
+ ic->ic_name);
if (error != 0) {
ICL_WARN("kthread_add(9) failed with error %d", error);
icl_conn_close(ic);
return (error);
}
- error = kthread_add(icl_receive_thread, ic, NULL, NULL, 0, 0, "iclrx");
+ error = kthread_add(icl_receive_thread, ic, NULL, NULL, 0, 0, "%srx",
+ ic->ic_name);
if (error != 0) {
ICL_WARN("kthread_add(9) failed with error %d", error);
icl_conn_close(ic);
OpenPOWER on IntegriCloud