Windows: Redir Ioctl thread safety
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 14 May 2012 04:12:17 +0000 (00:12 -0400)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 15 May 2012 23:58:25 +0000 (16:58 -0700)
commitac08a0c30d1b8f4f5f13a6e78b86d32e2cb34f65
treed64ed1fa959e7b94971b363e542a8d0f9daeda46
parenta160606616cae6e047d97d4e86f075ebe8c2e366
Windows: Redir Ioctl thread safety

A crash dump showed that it is possible for a Cleanup
to race with a Read from the ioctl file.  Add reference counting
to protect against crashing under such a circumstance.

Change-Id: I5dada2b5855603807b48a191db46ff48043c1997
Reviewed-on: http://gerrit.openafs.org/7405
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@secure-endpoints.com>
Tested-by: Jeffrey Altman <jaltman@secure-endpoints.com>
src/WINNT/afsrdr/user/RDRIoctl.c
src/WINNT/afsrdr/user/RDRIoctl.h