]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: use lock conversion in cm_EndDirOp
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 5 Sep 2011 14:11:09 +0000 (10:11 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Tue, 6 Sep 2011 06:08:53 +0000 (23:08 -0700)
commit33af0f92e9b8a50c5a6dd17a9065c0ef58597c28
tree8840c4aa017ef80cd576688ec7256c708df911dd
parentc3e82ee98bf66058636f11d7a98d3bebe3bac955
Windows: use lock conversion in cm_EndDirOp

Instead of dropping the lock for read and reacquiring for write
use lock_ConvertRToW() which will make the change atomicly if
it is possible or place the thread into the wait list if not.

LICENSE MIT

Change-Id: I5d134f045a0c935fdaaef6edf5bdf37bb0418a98
Reviewed-on: http://gerrit.openafs.org/5360
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_dir.c