ib_srpt: Embed HCA name in srpt thread name

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3631 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-06-26 14:32:00 +00:00
parent eff4f33b70
commit 97ee608748

View File

@@ -2399,7 +2399,8 @@ static int srpt_cm_req_recv(struct ib_cm_id *cm_id,
goto free_ring;
}
ch->thread = kthread_run(srpt_compl_thread, ch, "ib_srpt_compl");
ch->thread = kthread_run(srpt_compl_thread, ch, "srpt_%s",
ch->sport->sdev->device->name);
if (IS_ERR(ch->thread)) {
PRINT_ERROR("failed to create kernel thread %ld",
PTR_ERR(ch->thread));