mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
hyperv/vmbus: Remove NULL check for taskqueue_create_fast(M_WAITOK)
Submitted by: Jun Su <junsu microsoft com> Reviewed by: Dexuan Cui <decui microsoft com>, sephe MFC after: 1 week Sponsored by: Microsoft OSTC Differential Revision: https://reviews.freebsd.org/D5215
This commit is contained in:
parent
595a21e69e
commit
1f0dfd9918
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297178
@ -526,11 +526,6 @@ vmbus_bus_init(void)
|
||||
*/
|
||||
hv_vmbus_g_context.hv_event_queue[j] = taskqueue_create_fast("hyperv event", M_WAITOK,
|
||||
taskqueue_thread_enqueue, &hv_vmbus_g_context.hv_event_queue[j]);
|
||||
if (hv_vmbus_g_context.hv_event_queue[j] == NULL) {
|
||||
if (bootverbose)
|
||||
printf("VMBUS: failed to setup taskqueue\n");
|
||||
goto cleanup1;
|
||||
}
|
||||
CPU_SETOF(j, &cpu_mask);
|
||||
taskqueue_start_threads_cpuset(&hv_vmbus_g_context.hv_event_queue[j], 1, PI_NET, &cpu_mask,
|
||||
"hvevent%d", j);
|
||||
|
Loading…
Reference in New Issue
Block a user