Windows: cm_ShutdownSCache corrections
authorJeffrey Altman <jaltman@your-file-system.com>
Mon, 15 Aug 2011 04:34:00 +0000 (00:34 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Mon, 15 Aug 2011 04:52:27 +0000 (21:52 -0700)
commitc58ae34f72d25434cd59228806ca59a6ff39a903
treea741913b1e58f4203775f5c92ae50546bacdee0d
parent020b415be8fa357cded6eb4c50454aaa5b0722bf
Windows: cm_ShutdownSCache corrections

Obtain cm_scache.dirlock, cm_scache.rw and cm_scacheLock
in the correct order.

Do not release cm_scache.rw when it is not held.

Since the cm_scacheLock is being dropped, preserve the value
of scp->allNextp prior to dropping the lock.

Change-Id: I025a8d76f3f7b94ae00bfd4e000750a90d38b343
Reviewed-on: http://gerrit.openafs.org/5279
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
src/WINNT/afsd/cm_scache.c