From: bluhm Date: Wed, 10 Jan 2018 18:14:34 +0000 (+0000) Subject: Mark sosplice task mp safe, do not grab kernel lock for tcp output. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=a9d11d8694dd738cb852f0f7c79d181b8d054354;p=openbsd Mark sosplice task mp safe, do not grab kernel lock for tcp output. OK mpi@ --- diff --git a/sys/kern/uipc_socket.c b/sys/kern/uipc_socket.c index c653a258254..2f7ecfd2371 100644 --- a/sys/kern/uipc_socket.c +++ b/sys/kern/uipc_socket.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uipc_socket.c,v 1.214 2018/01/09 15:14:23 mpi Exp $ */ +/* $OpenBSD: uipc_socket.c,v 1.215 2018/01/10 18:14:34 bluhm Exp $ */ /* $NetBSD: uipc_socket.c,v 1.21 1996/02/04 02:17:52 christos Exp $ */ /* @@ -1078,7 +1078,8 @@ sosplice(struct socket *so, int fd, off_t max, struct timeval *tv) soassertlocked(so); if (sosplice_taskq == NULL) - sosplice_taskq = taskq_create("sosplice", 1, IPL_SOFTNET, 0); + sosplice_taskq = taskq_create("sosplice", 1, IPL_SOFTNET, + TASKQ_MPSAFE); if (sosplice_taskq == NULL) return (ENOMEM);