Chuck Tuffli d7e180feb7 bhyve: add locks around NVMe queue accesses
The NVMe code attempted to ensure thread safety through a combination of
using atomics and a "busy" flag. But this approach leads to unavoidable
race conditions.

Fix is to use per-queue mutex locks to ensure thread safety within the
queue processing code. While in the neighborhood, move all the queue
initialization code to a common function.

Tested by:	Jason Tubnor
MFC after:	2 weeks
Differential Revision: https://reviews.freebsd.org/D19841
2020-06-29 00:31:24 +00:00
..
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00
2018-06-14 01:34:53 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-13 03:22:08 +00:00
2018-06-14 01:34:53 +00:00