mjg 96ff69bdc9 mtx: clean up locking spin mutexes
1) shorten the fast path by pushing the lockstat probe to the slow path
2) test for kernel panic only after it turns out we will have to spin,
in particular test only after we know we are not recursing

MFC after:	1 week
2017-10-20 00:30:35 +00:00
..
2017-10-12 15:48:37 +00:00
2017-05-23 09:29:05 +00:00
2016-11-08 23:59:41 +00:00
2017-05-18 18:24:11 +00:00
2017-08-15 02:21:02 +00:00
2017-02-12 09:49:44 +00:00
2017-01-25 20:22:32 +00:00
2017-05-23 16:59:24 +00:00
2017-02-14 13:54:05 +00:00
2017-03-19 00:51:12 +00:00
2017-08-07 14:09:57 +00:00
2016-11-08 23:59:41 +00:00
2017-02-07 16:01:07 +00:00
2017-07-12 07:30:14 +00:00
2017-05-16 23:31:52 +00:00
2017-06-17 00:58:19 +00:00
2017-06-17 00:58:19 +00:00
2017-05-23 09:29:05 +00:00
2017-05-23 09:29:05 +00:00
2017-06-08 21:30:34 +00:00
2017-06-15 04:49:12 +00:00
2017-10-16 21:46:11 +00:00
2017-09-14 18:05:54 +00:00
2017-10-06 09:02:36 +00:00