Xin LI 57cd52ca4c - Make sure random_adaptor accesses happen only when
random_adaptors_lock is held.
 - Use sx_sleep instead of tsleep in read and write path to allow
   another thread that registers a new random adapter when waiting.
   Assert that random_adaptor is not NULL after reacquiring the lock.
 - Capture EINTR/ERESTART from sx_sleep to allow the blocking cycle be
   stopped when user requests so, while there also make short
   read/write's return 0.
 - Move M_WAITOK allocations out of lock scope.

In collobration with:	kib, markm, ian, jilles
Reviewed by:	kib, markm
Approved by:	so
2014-11-02 23:30:50 +00:00
..
2014-09-03 09:58:59 +00:00
2013-08-28 14:49:36 +00:00
2014-08-05 23:35:19 +00:00
2014-08-05 23:58:49 +00:00
2014-08-05 23:47:26 +00:00
2014-05-20 19:55:06 +00:00
2014-09-28 07:40:26 +00:00
2014-10-21 18:00:56 +00:00
2014-10-10 14:17:42 +00:00
2014-10-11 19:36:59 +00:00
2013-09-05 23:14:27 +00:00
2014-04-30 06:40:30 +00:00
2014-09-19 03:55:19 +00:00
2014-10-02 22:05:48 +00:00
2014-05-16 21:19:17 +00:00
2014-07-07 00:27:09 +00:00
2014-07-29 14:41:28 +00:00
2014-10-23 04:47:32 +00:00
2014-02-04 20:52:33 +00:00
2014-10-22 17:09:12 +00:00