Windows: add osi_TWaitExt(), fix osi_TWait()
authorJeffrey Altman <jaltman@your-file-system.com>
Tue, 27 Dec 2011 01:51:33 +0000 (20:51 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Sat, 31 Dec 2011 21:15:35 +0000 (13:15 -0800)
commit3011a8228a04a54e04f5626e9f686840a25f2d5f
treea3f4da54606a9c9b09c32e05c17dfdec2d572fce
parent2b6a8d384bd4426a61c72e79c34ffd75a03e612e
Windows: add osi_TWaitExt(), fix osi_TWait()

osi_TWait() was adding new locks to the turnstile at the tail
which is the end of the queue locks are removed from.  This
implemented LIFO instead of FIFO when FIFO is the "fair" order
to service lock requests.

osi_TWaitExt() is added to permit the Reader to Writer upgrade
request to use LIFO when more than one reader is present.

Change-Id: Ib6435a3edc2cb8519939cfad93e0db4b0604da2d
Reviewed-on: http://gerrit.openafs.org/6435
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/client_osi/osibasel.c
src/WINNT/client_osi/osisleep.c
src/WINNT/client_osi/osisleep.h