Windows: AFSClose() DirOpenReferenceCount handling
authorJeffrey Altman <jaltman@your-file-system.com>
Sat, 29 Dec 2012 05:29:45 +0000 (00:29 -0500)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 31 Jan 2013 19:19:26 +0000 (11:19 -0800)
commitf849fb1f6be4d4f8c34d150c8cdce1435a7125bf
tree237aef9532e29b64894a7987d6e283513318e132
parentafdb0dac9201a235dc1fd35e52e43895979b4583
Windows: AFSClose() DirOpenReferenceCount handling

Unless the caller of AFSRemoveCcb() steals the DirectoryCB object
from the AFSCcb before calling AFSRemoveCcb(), AFSRemoveCcb() will
release the reference count.

In all but one case where the DirectoryCB must be accessed after
the AFSCcb is destroyed AFSClose() can now let AFSRemoveCcb() do the
work.

Change-Id: I8d631d79b2465cd6f2e31444fd052270b078915c
Reviewed-on: http://gerrit.openafs.org/8854
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsrdr/kernel/lib/AFSClose.cpp