diff options
author | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-01-10 18:14:35 +0000 |
---|---|---|
committer | Alexander Bluhm <bluhm@cvs.openbsd.org> | 2018-01-10 18:14:35 +0000 |
commit | 746168d3fedcbc1dfef08270033609b999754872 (patch) | |
tree | ba41f4bbc9cb039b3d5ece8b2e6d7fa6b7e635f7 /sys/kern/uipc_socket.c | |
parent | 92b8750a8523f8ba5ee3da281c853aa28e04b358 (diff) |
Mark sosplice task mp safe, do not grab kernel lock for tcp output.
OK mpi@
Diffstat (limited to 'sys/kern/uipc_socket.c')
-rw-r--r-- | sys/kern/uipc_socket.c | 5 |
1 files changed, 3 insertions, 2 deletions
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); |