Make it possible to run pipe(2) and pipe2(2) mostly w/o KERNEL_LOCK():
authormpi <mpi@openbsd.org>
Mon, 13 Aug 2018 14:35:29 +0000 (14:35 +0000)
committermpi <mpi@openbsd.org>
Mon, 13 Aug 2018 14:35:29 +0000 (14:35 +0000)
commit899967bfda86cfd0d81886ed0dc2459a4d57a5ef
tree9ae82098dd9c79abe25b5a64ba7fefb639980506
parentc633bafc7f000fc407651b28fcbf486b4babcdd7
Make it possible to run pipe(2) and pipe2(2) mostly w/o KERNEL_LOCK():

- Update counters atomatically
- Use IPL_MPFLOOR for pipe's pool.
- Grab the KERNEL_LOCK() before calling km_alloc(9) & km_free(9)

Inputs from kettenis@, ok visa@
sys/kern/sys_pipe.c