Alexander Motin 97752ba22a
Move gethrtime() calls out of vdev queue lock
This dramatically reduces the lock contention on systems with slower
(non-TSC) timecounters.  With TSC the difference is minimal, but since
this lock is pretty congested, any improvement counts.  Plus I don't
see any reason to do it under the lock other than the latency of the
lock itself, which this change actually reduces.

Reviewed-by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Alexander Motin <mav@FreeBSD.org>
Sponsored-By: iXsystems, Inc.
Closes #12281
2021-07-06 14:38:00 -07:00
..
2021-01-26 16:12:26 -08:00
2020-09-02 09:42:12 -07:00
2020-06-10 09:24:15 -07:00
2021-04-02 18:52:15 -07:00
2021-06-25 22:28:12 -07:00
2020-06-10 09:24:15 -07:00
2020-08-20 10:30:06 -07:00