jhb 897a9bc5d3 Various cleanups to the main function for AIO kernel processes:
- Pull the vmspace logic out into helper functions and reduce duplication.
  Operations on the vmspace are all isolated to vm_map.c, but it now exports
  a new 'vmspace_switch_aio' for use by AIO kernel processes.
- When an AIO kernel process wants to exit, break out of the main loop and
  perform cleanup after the loop end.  This reduces a lot of indentation and
  allows cleanup to more closely mirror setup actions before the loop starts.
- Convert a DIAGNOSTIC to KASSERT().
- Replace mycp with more typical 'p'.

Reviewed by:	kib
Sponsored by:	Chelsio Communications
Differential Revision:	https://reviews.freebsd.org/D4990
2016-01-19 21:37:51 +00:00
..
2016-01-07 20:22:55 +00:00
2016-01-19 17:00:25 +00:00
2016-01-19 15:33:28 +00:00
2016-01-19 15:33:28 +00:00
2015-11-19 08:04:05 +00:00
2016-01-19 15:33:28 +00:00
2015-11-12 10:31:14 +00:00