windows-deadlock-and-race-removal-20060427 openafs-devel-1_5_1
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 27 Apr 2006 16:49:55 +0000 (16:49 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 27 Apr 2006 16:49:55 +0000 (16:49 +0000)
commitbf7404c3510d63b90c2cb15766f8455f79da90fe
treeef111fa7515cd3ef2af4522eb122629f8a73c476
parentb2b3aa1afb592955a9478c43367052fda6f4ffbd
windows-deadlock-and-race-removal-20060427

This patch fixes:

* race conditions around cm_Lock() calls that were not protected
  by cm_SyncOp(LOCK) [asanka@secure-endpoints.com]

* deadlocks caused by obtaining smb_fid_t->mx after cm_scache_t->mx

* removes an extra Release smb_fid_t->mx that could result in
  releasing a mutex that is not currently held

* changes the log representation of several return codes and fids to
  be consistent with other output
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/smb.c
src/WINNT/afsd/smb.h
src/WINNT/afsd/smb3.c
src/WINNT/afsd/smb3.h